Topic
  • 5 replies
  • Latest Post - ‏2008-08-29T06:14:58Z by grukrz1
SystemAdmin
SystemAdmin
6902 Posts

Pinned topic AIX 5.3 OS, file permission (chmod)

‏2008-08-13T05:20:17Z |
Hi,
I've a question as to how can I revert back to original permission settings on all files under /
The server is IBM AIX 5.3

I've run chmod -R 777 * under root user by mistake, and need now to revert back all original files settings

For example some of the files under /usr/bin have -s- in the permission mode etc

Help is much appreciated

Thanks,
Shahar
Updated on 2008-08-29T06:14:58Z at 2008-08-29T06:14:58Z by grukrz1
  • esv
    esv
    118 Posts

    Re: AIX 5.3 OS, file permission (chmod)

    ‏2008-08-14T10:42:39Z  
    restore from a good backup
  • tony.evans
    tony.evans
    412 Posts

    Re: AIX 5.3 OS, file permission (chmod)

    ‏2008-08-14T10:49:16Z  
    Restore from a good backup (as another poster said), or if you use TSM I believe you can get TSM to restore just the file permissions.

    The problem you've got is that it's not really possible to be sure what permissions were set on non-standard OS files (you could for example build another server at the same level and get the permissions for most of the true operating system files, but you'll never be sure about /home, or temporary files, or some devices).

    There is a case for taking the output of "find / -ls" daily and keeping a record of it, for just such an occasion, but hindsight is always 20/20.
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: AIX 5.3 OS, file permission (chmod)

    ‏2008-08-21T21:35:08Z  
    I did this once myself. You can restore just file permissions from a good mksysb.
  • jnordtome
    jnordtome
    35 Posts

    Re: AIX 5.3 OS, file permission (chmod)

    ‏2008-08-22T16:45:45Z  
    I did this once myself. You can restore just file permissions from a good mksysb.
    If you enabled TCB during install, you can use tcbck to check/change the most important OS files. This won't take care of every file but most of the "sensitive" ones will be listed.
  • grukrz1
    grukrz1
    128 Posts

    Re: AIX 5.3 OS, file permission (chmod)

    ‏2008-08-29T06:14:58Z  
    as 1bi's said user your mksysb image...

    I think for /usr/bin can be any mksysb of desired AIX level...

    http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14102270