Security
Showing results for 
Search instead for 
Do you mean 

Directory and file permissions

SOLVED
Go to Solution
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?

 

Thanks.

2 REPLIES
Highlighted
Honored Contributor [Founder]

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

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.