Setting Access Privileges for Files and Directories

Context

Before changing the access privileges, make sure that you save your current settings, as described below.

Procedure


Saving Your Current Settings
  1. cd /oracle/<DBSID> ls -lR > oracle_perm.txt

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

  3. cd /sapmnt ls -lR > sap_sw.txt

Setting Access Privileges

To change the access privileges for a file or directory, use the chmod command as shown below:

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