Setting Access Privileges for Files and Directories

Saving Current Settings

Before changing the access privileges, we advise you to save your current settings. To do so, log on to the database server as user db2<dbsid> and enter the following commands:

cd /db2/<SID>
ls -lR > db2_perm.txt

cd /usr/sap
ls -lR > sap_perm.txt

cd /sapmnt
ls -lR > sap_sw.txt

Setting Access Privileges

To change the access privileges for a file or directory, log on to the database server as user db2<dbsid> and enter the following command:

chmod <access privileges in octal> <file or directory>

chmod  755 /db2/<SID>

chmod  750 /db2/<SID>/log_dir

chmod 2755 /db2/<SID>/log_archive

.

.

.

Do not use chmod recursively. It is very easy to make unintended changes
to authorizations when doing so.