[CentOS] Re: chown command goof up
Adam Thompson
athompson at sjsd.net
Tue Feb 13 16:43:01 UTC 2007
CentOS mailing list <centos at centos.org> writes:
>Anyway. In case one wanted to do a little chown'ing above and beyond
>the scope of most necessity again, the proper way to deal with the -R
>recursion
>nightmare is by executing it on .??* and ??*.
>That will, of course skip anything that has a 2-character name, but
>that's usually
>okay, because it will keep you from recursively chown'ing "..".
>Just in case nobody comes out and says it..
>Peter
>--
>Peter Serwe <peter at infostreet dot com>
A much easier concept would be to:
chown -R user2:user2 ~user2
which will implicitly recurse through that directory. There's normally
no reason the user's home directory itself shouldn't be owned by the
user.
-Adam Thompson
Divisional IT Department, St. James-Assiniboia School Division
150 Moray St., Winnipeg, MB, R3J 3A2
athompson at sjsd.net / tel: (204) 837-5886 x222 / fax: (204) 885-3178
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20070213/2adb5452/attachment.html>
More information about the CentOS
mailing list