|
do:
# for var in `ls`; do chown -R ${var}.users $var; done
-------Original Message-------
Date: Monday, December
16, 2002 2:00:33 PM
Subject: [plug] chown
-R by batch.... how?
hi i have a /home/samba folder that holds the
samba user's home directories, ok, so for some reason the owner of
each directory is "stto" and is in the group "users". there are about a
hundred directories!! dont ask me how it happened... the admin must
be smoking weed again!!! now, i could always do "chown -R
daustria.users daustria", but i have to do it on all the folders one by
one!! how can i change it all using bash? or perl?
each user's
home directories is the same as the user name of the
users
thanks a
lot
__________________________________________________ Do
you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _ Philippine
Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave:
send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully
Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To
subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
. |