[CentOS] How to fix a chown oops...

Wed Apr 11 21:38:13 UTC 2012
Jason Pyeron <jpyeron at pdinc.us>

> -----Original Message-----
> From: centos-bounces at centos.org 
> [mailto:centos-bounces at centos.org] On Behalf Of Alexander Dalloz
> Sent: Wednesday, April 11, 2012 17:12
> To: CentOS mailing list
> Subject: Re: [CentOS] How to fix a chown oops...
> 
> Am 11.04.2012 23:02, schrieb Jason Pyeron:
> > chown -R 7.0 /sbin/
> > chown -R 98.98 //
> > 
> > Is there a rpm way fix all the permissions of files managed by rpms?
> 
> http://wiki.centos.org/TipsAndTricks/YumAndRPM#head-20a3ecce3d
> 0762b9cdd3307ef2632e0c274a2bfd

rpm -qa | while read line; do echo $line && rpm --setperms $line; done

Thanks...


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.