Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   How to fix a chown oops... (http://www.linux-archive.org/centos/655070-how-fix-chown-oops.html)

"Jason Pyeron" 04-11-2012 09:02 PM

How to fix a chown oops...
 
chown -R 7.0 /sbin/
chown -R 98.98 //

Is there a rpm way fix all the permissions of files managed by rpms?

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- 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.


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

Alexander Dalloz 04-11-2012 09:12 PM

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-20a3ecce3d0762b9cdd3307ef2632e0c274a2bfd

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

"Jason Pyeron" 04-11-2012 09:38 PM

How to fix a chown oops...
 
> -----Original Message-----
> From: centos-bounces@centos.org
> [mailto:centos-bounces@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.



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


All times are GMT. The time now is 11:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.