How To Use Umask With Directory Proxy Server 6.3.1.1, 7, and 11gR1 (command: dpadm set-flags <instance-name> umask=<umask-value>) & 11gR1 (dpadm set-flags <instance-path> server-umask=<value>) (Doc ID 1314478.1)

Last updated on OCTOBER 11, 2016

Applies to:

Oracle Directory Server Enterprise Edition - Version: 6.3 SP1 to 11gR1 - Release: 6.0 to 11.1
Oracle Directory Server Enterprise Edition - Version: 6.3 SP1 to 11gR1   [Release: 6.0 to 11.1]
Generic UNIX
Generic Linux

Symptoms

Description

When using the umask with DPS 6.3.1.1 7 or 11gR1, logs file permission are not immediately acknowledged.


To set the umask value in versions 6.3.1.1 and 7 you need to do the following:

dpadm set-flags <instance-path> umask=<value>

To set the umask value in 11gR1 you need to do the following:

dpadm set-flags <instance-path> server-umask=<value>






Example applies to either 6.3.1.1 or 7; as see above for setting the umask in 11gR1:

dpadm set-flags /var/opt/SUNWdsee/dps_23000 umask=077

/var/opt/SUNWdsee/dps_23000/logs]# ls -al
total 24
drwxr-xr-x   2 root     root         512 Apr 18 09:35 .
drwxr-xr-x   7 root     root         512 Apr  8 16:32 ..
-rw-rw-rw-   1 root     root        1780 Apr 18 09:36 access
-rw-rw-rw-   1 root     root          63 Apr 18 09:35 access.rotationinfo
-rw-rw-rw-   1 root     root          13 Apr 18 09:35 access.rotationinfo.next
-rw-rw-rw-   1 root     root        3482 Apr 18 09:36 errors
-rw-rw-rw-   1 root     root          63 Apr 18 09:35 errors.rotationinfo
-rw-rw-rw-   1 root     root          13 Apr 18 09:35 errors.rotationinfo.next


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms