[CentOS] Re: chown command goof up

Peter Serwe peter at infostreet.com
Mon Feb 12 23:05:11 UTC 2007


Scott Silva wrote:
> I don't know of an easy way to fix this. Root is dangerous!
>   
Guns aren't dangerous.  People are dangerous.

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>

http://www.infostreet.com

"The only true sports are bullfighting, mountain climbing and auto racing." -Earnest Hemingway

"Because everything else requires only one ball." -Unknown

"Do you wanna go fast or suck?" -Mike Kojima

"There are two things no man will admit he cannot do well: drive and make love." -Sir Stirling Moss




More information about the CentOS mailing list