Fixing perms

Amadeus W. M. amadeus84 at cablespeed.com
Thu Nov 24 04:39:27 UTC 2005


On Tue, 22 Nov 2005 07:44:39 +0100, Andy Pieters wrote:

> Hi
> 
> You can use the rpm command to let it compile a list of what is wrong with 
> your system, provided you installed most of it from rpms.
> 
> See http://fedora.redhat.com/docs/drafts/rpm-guide-en for more info.
> You might want to skip pages until you come to the relevant page though.
> 
> 
> With kind regards
> 
> 
> Andy
> 
> On Tuesday 22 November 2005 04:04, Ashley M. Kirchner wrote:
>>     This is why I tell people I know that vacation for me doesn't mean a
>> dang thing...it's just another working day for me.  This morning I
>> received an e-mail from a client that has his machine co-located with
>> me.  It seems over the weekend he screwed with "something" which caused
>> several things on the system to quit working.  After hunting for a bit
>> (and looking at his .bash_history) I figured that he ran a few 'chown'
>> commands in places like /usr/sbin and lord knows where else.  So, now
>> I'm trying to figure out if:
>>
>>     a) I need rebuild his machine from scratch, or
>>     b) if there's some way that I can verify binary permissions and what
>> not, possibly by running some rpm verify command?  I don't know.
>>
>>     Part of me wants to simply rebuild the machine, but at the same time
>> I don't have time to go through this right now.
>>
>> --
>> R | I haven't lost my mind; it's backed up on tape somewhere.
>>   +--------------------------------------------------------------------
>>   Ashley M. Kirchner <mailto:ashley at pcraft.com>   .   303.442.6410 x130
>>   IT Director / SysAdmin / WebSmith             .     800.441.3873 x130
>>   Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave. #6
>>   http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.
> 
> -- 
> Now listening to Top! Radio Live www.topradio.be/stream on amaroK
> Geek code: www.vlaamse-kern.com/geek
> Registered Linux User No 379093
> If life was for sale, what would be its price?
> www.vlaamse-kern.com/sas/ for free php utilities
> --


rpm --setperms package


Do it in a for loop like so:

for package in `rpm -qa`
do
rpm --setperms $package
done








More information about the fedora-list mailing list