[mdlug] a chown -R disaster recovery question
Michael ORourke
mrorourke at earthlink.net
Wed Dec 17 06:55:33 EST 2008
Try this...
ls -1 /filesystem/vol/users | xargs -i chown -R {} /filesystem/vol/users/{}
Thats a "ls dash one" not a "ls dash el"
-Mike
----- Original Message -----
From: mdlug at wowway.com
To: mdlug at mdlug.org
Sent: Wednesday, December 17, 2008 6:07 AM
Subject: [mdlug] a chown -R disaster recovery question
Hello, let's say I have a system where there are hundreds of users, with a
system of NIS-mapped home dirs such as this:
/filesystem/vol/users/user1
/filesystem/vol/users/user2
/filesystem/vol/users/user3
...
/filesystem1/vol1/users/userX
and each user is owner of their own home dir.
Accidentally, I go through at the level of /filesystem/vol and
I chmod -R user1 * (I know, that was a mistake).
Is there a way to run back through that and chown everyone back?
Thanks,
--
WOW! Homepage (http://www.wowway.com)
_______________________________________________
mdlug mailing list
mdlug at mdlug.org
http://mdlug.org/mailman/listinfo/mdlug
More information about the mdlug
mailing list