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
Pinned topic AIX 5.3 OS, file permission (chmod)
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2008-08-29T06:14:58Z at 2008-08-29T06:14:58Z by grukrz1
tony.evans 0600007X8X412 Posts
Re: AIX 5.3 OS, file permission (chmod)2008-08-14T10:49:16ZThis is the accepted answer. This is the accepted answer.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.
jnordtome 1000008N5B35 Posts
Re: AIX 5.3 OS, file permission (chmod)2008-08-22T16:45:45ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
grukrz1 100000KX4P127 Posts
Re: AIX 5.3 OS, file permission (chmod)2008-08-29T06:14:58ZThis is the accepted answer. This is the accepted answer.as 1bi's said user your mksysb image...
I think for /usr/bin can be any mksysb of desired AIX level...