[NTLUG:Discuss] Restore owners

Tom McDonald mickeyd at compuclaim.com
Thu Mar 6 21:57:54 CST 2008


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
> 
> 
Greg,

If your talking about system ownership, most distros have a file 
/etc/permissions that contain the rights assignment, and the ownership 
of the files.  I believe that it includes the libraries but you would 
have to check it.  There is a program that parses the file and sets the 
permissions and ownership, but I don't recall the exact name I think it 
is sec??? or setsec??  (some security program) hope it works out.


Good luck

Tom


-- 

Tom McDonald <mickeyd at compuclaim.com>


Fifth Law of Applied Terror:
	If you are given an open-book exam, you will forget your book.

Corollary:
	If you are given a take-home exam, you will forget where you live.



More information about the Discuss mailing list