CentOS mailing list <centos@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@sjsd.net / tel: (204) 837-5886 x222 / fax: (204) 885-3178