[3306] in RedHat Linux List
Re: chown as root
daemon@ATHENA.MIT.EDU (Eric Smith)
Thu Nov 7 22:12:31 1996
Date: 8 Nov 1996 03:52:39 -0000
From: Eric Smith <eric@brouhaha.com>
To: Vlad Petersen <vladimip@iceonline.com>
CC: redhat-list@redhat.com
In-reply-to: <328291E7.21C8D348@iceonline.com> ("vladimip "@iceonline.com)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Vlad Petersen <vladimip@iceonline.com> 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 * .*
Or perhaps just
chown -R root:root /
However, I'm not about to try that out on my machine; I don't want
everything to be owned by root.
The real solution to the original problem (acidentally changing the
ownership of *everything*) is to somehow extract the original ownership
information from the RPM database, and process it with a script that sets
the ownership. However, I can't find an rpm query option that gives the
ownership. "rpm -qal" only gives the file paths; if there was only some way
to coax it to give more detailed info...
Cheers,
Eric
--
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