[NTLUG:Discuss] Restore owners
Leroy Tennison
leroy_tennison at prodigy.net
Thu Mar 6 18:24:53 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
>
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.
More information about the Discuss
mailing list