Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

Directory and file permissions

Go to solution
john guardian
Super Advisor

Directory and file permissions

We're currently running a sandbox setup to deploy a number of 11i-v3 machines. Only 1 of the machines was upgraded to SMSE status. One of our SA interns was in "learning" mode over the weekend and inadvertently made some "sweeping" changes to the /var/adm/userdb directory and its subordinate files (starting at 00 and thru to the end). This machine was going to be used as a golden image.


I'd just like to help her to avoid any issues concerning the accidental mods. Can anyone tell me what the owner, group, and mode defaults for the dir and the subordinate files, so we can get this fixed w/a minimum of pain?



Patrick Wallek
Honored Contributor

Re: Directory and file permissions

The userdb directory itself:


# pwd

# ll -d userdb
drwx------ 2 root sys 8192 Apr 8 13:13 userdb


All files in /var/adm/userdb should be owned by root, with sys as the group, and 600 permissions (rw-------).


# pwd

# ll | more
total 32800
drwx------ 2 root sys 8192 Apr 8 13:13 .
drwxr-xr-x 18 adm adm 8192 Jul 12 22:36 ..
-rw------- 1 root sys 65536 Apr 8 13:12 00
-rw------- 1 root sys 65536 Apr 8 13:12 01
-rw------- 1 root sys 65536 Apr 8 13:12 02
-rw------- 1 root sys 65536 Apr 8 13:12 03
-rw------- 1 root sys 65536 Apr 8 13:12 04
-rw------- 1 root sys 65536 Apr 8 13:12 05

john guardian
Super Advisor

Re: Directory and file permissions

Many thanks, Patrick. I know that when the intern comes in this afternoon for her shift, she'll breathe a sigh of relief.


I had a note on my desk today asking "if" she should come in.


But, mistakes are how we learn! Worst case, she'd have had some extra work to do.


Thanks again.