[3587] in RedHat Linux List
Re: chown as root
daemon@ATHENA.MIT.EDU (Alan Shutko)
Sat Nov 9 13:35:49 1996
To: redhat-list@redhat.com
From: Alan Shutko <ats@wydo125.wustl.edu>
Date: 09 Nov 1996 12:33:12 -0600
In-Reply-To: "Doug 'Doogiemeister' Kremer"'s message of Sat, 9 Nov 1996 13:05:04 -0500 (EST)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
>>>>> "D" == Doug 'Doogiemeister' Kremer <kremer@Kremerdg.gardens.udayton.edu> writes:
D> On Thu, 7 Nov 1996, Borg wrote:
>> Borg wrote: > > Jason, > > You can do: > > cd /; chown -R root
>> *;chgrp -R root *
>>
>> I just tried that on one of the machines which I don't depend upon,
>> and hidden files were not affected. So, the above should have been:
>>
>> cd /; chown -R root * .*; chgrp -R root * .*
D> easier:
D> cd / ; chown -R root.root *
Argh! I can't believe it!
Try this:
chown -R root.root /
Remember, the -R means recursive, so there's no reason to let the
shell try to fuck you over. Or to type that much. But the real
problem will come when someone thinks that they knew what yoou were
doing and try to apply the solution to a different problem:
cd ~foo; chown -R foo * .*
Suddenly, whoops, significant parts of the system are hosed.
When using -R, you should almost _always_ give it an pathname to a
directory.
--
Alan Shutko <ats@hubert.wustl.edu> - The Few, the Proud, the Remaining.
IBM: It's Become Monolithic
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null