Re: chown command goof up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Monday 12 February 2007 21:34, David A. Woyciesjes wrote:
...
> 	So, how can I fix this? In MacOSX, there is a utility to fix all
> permissions on the system. Is there a similar item in CentOS?

The rpm-databse contains all you need to know (almost, it wont cover files not 
owned by any package). "rpm -V PKG" will tell you if that package has files 
that have been modified since install, including uid:gid). The information 
can be obtained (dumped) with something like:
 # rpm --dump -ql PKG
which would give you a list of all files in PKG and (among other things) their 
original uid:gid.

I know of no automated way of restoring this so implementing x 
(rpm --dump -qal | x ) is left as an exercise ;-)

/Peter

Attachment: pgpJGIsSfuAdn.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux