[NTLUG:Discuss] Restore owners
Robert Citek
robert.citek at gmail.com
Thu Mar 6 21:04:38 CST 2008
On Thu, Mar 6, 2008 at 6:24 PM, Leroy Tennison
<leroy_tennison at prodigy.net> wrote:
> 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.
>
> 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 suspect Greg is looking for a log file that looks similar to this:
$ find /etc/ | xargs stat -t | head -3
/etc/ 12288 24 41ed 0 0 805 2473985 126 0 0 1204858989 1204858197
1204858197 4096
/etc/aliases 52 8 81a4 0 0 805 2474515 1 0 0 1199403024 1199403024
1199403024 4096
/etc/mime.types 20847 48 81a4 0 0 805 2474323 1 0 0 1204857215
1165428827 1199401813 4096
Greg would then be able to parse out the filename, uid, and gid
(fields 1,5,6) and chown the files to their original configuration.
The question is, does RH keep such a log file and, if so, where?
Regards,
- Robert
More information about the Discuss
mailing list