Re: Re: chown command goof up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux