Show TOC

Procedure documentationSetting Access Privileges for Files and Directories Locate this document in the navigation structure

 

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>

    Caution Caution

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

    End of the caution.

    Example Example

    chmod 755 /oracle/<DBSID>/sapdata* chmod 755 /oracle/<DBSID>/sapdata*/* chmod 640 /oracle/<DBSID>/sapdata*/*/* . . .

    End of the example.