[CentOS] Root directory ownership/perms
Hugh E Cruickshank
hugh at forsoft.com
Wed Sep 20 02:44:36 UTC 2006
From: Jim Perrin Sent: September 19, 2006 19:26
> > I just shot myself in the foot by change the owner/perms on the
> > contents of the root directory (my bad!!!). I have done a quick
> > compare with a running RHEL3U8 system and think I have every
> > thing back to what it should be except for new directories media
> > and selinux. Can someone out there currently running 4.3 send me
> > an "ls -l" of their root directory so I can make sure I have got
> > everything back as it should be?
> > Alternately is there some command within Linux that will fix these
> > up for me (we used to have something like this on SCO OSR5 but I
> > have not been able to locate anything for Linux)?
> Assuming you have (or can obtain) a list of packages on the sytem...
> rpm --setperms --setugids <packagename> will restore the package to
> the original permissions and ownership. This will still leave a few
> files out in teh cold as not everything is owned by an rpm.
Thanks for that. I will check it out for sure. Right now my only
concern is with the contents of the root directory everything else
Hugh E Cruickshank, Forward Software, www.forward-software.com
More information about the CentOS