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
This topic has been locked.
5 replies Latest Post - 2008-08-29T06:14:58Z by grukrz1
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 PostsACCEPTED ANSWER
Re: AIX 5.3 OS, file permission (chmod)2008-08-14T10:49:16Z in response to SystemAdminRestore 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 110000D4XK6907 Posts
jnordtome 1000008N5B35 PostsACCEPTED ANSWER
Re: AIX 5.3 OS, file permission (chmod)2008-08-22T16:45:45Z in response to SystemAdminIf 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 100000KX4P125 Posts