On Thu, Sep 12, 2002 at 11:28:00AM -0400, Travis Crump wrote: > martin f krafft wrote: > >one warning: > > > > NEVER, i repeat *N*E*V*E*R* use the -R flag to chmod/chgrp/chown if > > the final argument is not a directory. for instance > > > > chown -R pierre /music/mp3/* > > > > will eventually change *your entire filesystem* to be owned by > > pierre! > > Can someone else confirm this because this doesn't make any sense to me > and I have never encountered it. I just tried a couple of tests trying > to confirm this and was unable to reproduce it.
It doesn't make any sense to me either. You can see what chown is doing by adding the -v flag, and: [cjwatson@riva ~/tmp]$ sudo chown -v -R www-data svn-dump.* changed ownership of `svn-dump.142' to www-data changed ownership of `svn-dump.149' to www-data There's other stuff under there, so I don't understand why -R on a file could be bad. -- Colin Watson [[EMAIL PROTECTED]] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]