[NTLUG:Discuss] Restore owners

Daniel Hauck daniel at yacg.com
Thu Mar 6 19:19:33 CST 2008


Leroy Tennison さんは書きました:
> Greg Edwards wrote:
>> How can I restore ownerships on a block of files on a RHEL system?  I
>> know that this question has been asked before but I couldn't find it in
>> the archives.
>>
>>  
>>
>> IIRC, RH keeps a file that is part of the security monitoring system and
>> logs the ownerships as of yesterday.  I don't remember where this is
>> kept and if RH has a command that will restore the ownerships in bulk.
>> If I have the file I can write my own script to get it fixed.
>>
>>  
>>
>> This was a case of fat fingers and trying to work faster that I think!!!
>> I was 1 dir up from where I should have been and changed everything in
>> /usr/lib, ugh!!
>>
>>  
>>
>> TIA
>>
>>  
>>
>> --
>>
>> Greg Edwards
>>
>>  
>>
>> _______________________________________________
>> http://www.ntlug.org/mailman/listinfo/discuss
>>
> 
> Have you tried
> 
> chown <desired owner>[:<desired group>] *	or
> chown :<desired group> *
> 
> If * is too broad then provide a more specific file specification.  You 
> will have to have adequate permissions to do this.

I ran a "restore owners" process wizard recently and all the ownerships
were changed to "SCO.Microsoft"

I suspect this is not a good utility to use...



More information about the Discuss mailing list