[3585] in RedHat Linux List
Re: chown as root
daemon@ATHENA.MIT.EDU (Tim Hockin)
Sat Nov 9 13:16:50 1996
From: Tim Hockin <thockin@eagle.ais.net>
To: redhat-list@redhat.com
Date: Sat, 9 Nov 1996 12:14:06 -0600 (CST)
In-Reply-To: <Pine.LNX.3.95.961109130402.12278A-100000@Kremerdg.gardens.udayton.edu> from "Doug 'Doogiemeister' Kremer" at Nov 9, 96 01:05:04 pm
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
> > 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 * .*
NO!!!!
Unless I am wrong, that will also find .. and recursively chown that!
eg: in a minute EVERYTHING is root.root!
cd /target/dir ; chown -R root.root * .??*
This will catch 99% of files without affecting the rest of the filesystem
the only ones it will miss will be files like .a, .1, which do not match .??*
--
Tim Hockin
thockin@ais.net
This program has been brought to you by the language C and the number F.
--
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