Re: System permissions fix utility

From: Renison, Rick (rick.renison@EDS.COM)
Date: Wed Oct 29 2003 - 09:12:34 EST


found this on the man pages for restore command on
http://publib16.boulder.ibm.com/pseries/en_US/cmds/aixcmds4/aixcmds4tfrm.htm
:

-Pstring Restore only the file attributes. Does not restore the file
contents. If the file specified does not exist in the target directory path,
the files is not created. This flag restores file attributes selectively
depending on the flags specified in the string parameter. String parameter
can be a combination of the following characters:

A
    restore all attributes.
a
    restore only the permissions of the files.
o
    restore only the ownership of the files.
t
    restore only the timestamp of the files.
c
    restore only the ACL attributes of the files.

Note:
Among the existing options for the restore command, options v, h, b, s, f,
B, d, and q are valid with the P option. The P option can be used with both
file-name and filesystem archives. If the File argument is a symbolic link,
then the metadata of the target file will be modified and not that of the
symbolic link.

Warning: Usage of -P flag will overwrite the attributes of files owned by
another user when executed by the superuser.

> -----Original Message-----
> From: Green, Simon [mailto:Simon.Green@EU.ALTRIA.COM]
> Sent: October 29, 2003 6:18 AM
> To: aix-l@Princeton.EDU
> Subject: Re: System permissions fix utility
>
>
> That's interesting.
> It doesn't appear to be an option on my 5.1-04 systems, but
> something to look forward to.
>
> Simon Green
> Altria ITSC Europe Ltd
>
> AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
>
> AIX FAQ at http://www.faqs.org/faqs/aix-faq/
>
> N.B. Unsolicited email from vendors will not be appreciated.
> Please post all follow-ups to the list.
>
> > -----Original Message-----
> > From: Williamson, Alan [mailto:alan.williamson@SIEMENS.COM]
> > Sent: 29 October 2003 10:24
> > To: aix-l@Princeton.EDU
> > Subject: Re: System permissions fix utility
> >
> >
> > Actually in AIX 5.2 there is a an option to restore some or
> all of the
> > metadata but NOT the file contents. Used to fix this very scenario.
> >
> > I believe it is restore -Pa to restore permissions.
> >
> > Not sure whether this is in 5.1 though.
> >
> > > -----Original Message-----
> > > From: Green, Simon [mailto:Simon.Green@EU.ALTRIA.COM]
> > > Sent: 29 October 2003 09:55
> > > To: aix-l@Princeton.EDU
> > > Subject: Re: System permissions fix utility
> > >
> > >
> > > There's nothing built in to AIX that'll do it.
> <SNIP>
>



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:19 EDT