cancel
Showing results for 
Search instead for 
Did you mean: 

chmod command

Former Member
0 Kudos

Hello unix-experts!

During installation on Solaris of the second SAP system some of colleagues executed a command

><b>chmod -R 777 /usr/</b>

<b>Which consequences does this command have?

Can this e.g. be responsible for the crash of system or lock the (root)user?</b>

<b>How can this be corrected?</b>

Thank you very much in advance!

regards

Thom

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Thom,

it is is just giving the permissions to users on files

Regards,

Ramarao.A

Former Member
0 Kudos

Hi Ramarao,

can this be corrected (e.g. with chmod-command)?

>chmod -R 775 or 771 /usr/

Thank you!

regards

Thom

markus_doehr2
Active Contributor
0 Kudos

No - this won't work.

you can use pkgchk on Solaris to check, what is wrong for the operating system files. For the SAP files you can execute "saproot.sh <SID>" in the /usr/sap/<SID>/exe directory but for the rest you need to "know" what the correct permissions are.

Additonally, if someone deletes something from /usr/kernel, your OS will crash.

--

Markus

markus_doehr2
Active Contributor
0 Kudos

Reinstall the OS,that's the only thing, that can be told here.

1. Security

Anyone with access to a SAP system can overwrite all, including deleting everything beyond /usr. If a normal user does an "rm -rf /usr/*" nothing will work any more and yes, the system would eventually crash depending on if the operating system has OS critical data under /usr

2. wrong permission

Some programs need to be run with S-UID root instead of the normal user, even a SAP system has examples of that (saposcol, icmbnd). If you change everything to 777 that bit is deleted on filesystem permissions and SAP programs as well as operating system specific programs may no more work as expected.

If you have permission problems in a specific are it's advised to check, what is going wrong instead of brute force "fixing" things, fixing badly.

I can just recommend: Reinstall the OS from scratch, you may get all sorts of issues later when patching the operating system or troubleshooting problems with Sun.

--

Markus