Setting Access Privileges for Files and Directories 
Before changing the access privileges, make sure that you save your current settings, as described below.
cd /oracle/<DBSID> ls -lR > oracle_perm.txt
cd /usr/sap ls -lR > sap_perm.txt
cd /sapmnt ls -lR > sap_sw.txt
To change the access privileges for a file or directory, use the chmod command as shown below:
chmod <access privileges in octal> <file or directory>
Caution
Do not use chmod recursively. It is very easy to make unintended changes to authorizations when doing so.
Example
chmod 755 /oracle/<DBSID>/sapdata* chmod 755 /oracle/<DBSID>/sapdata*/* chmod 640 /oracle/<DBSID>/sapdata*/*/* . . .