Directory and file permissions (232 Views)
Reply
Super Advisor
john guardian
Posts: 309
Registered: ‎09-26-2003
Message 1 of 3 (232 Views)
Accepted Solution

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?

 

Thanks.

Honored Contributor
Patrick Wallek
Posts: 13,776
Registered: ‎06-21-2000
Message 2 of 3 (226 Views)

Re: Directory and file permissions

The userdb directory itself:

 

# pwd
/var/adm

# 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
/var/adm/userdb

# 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

Super Advisor
john guardian
Posts: 309
Registered: ‎09-26-2003
Message 3 of 3 (220 Views)

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.

 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.