on 10-10-2007 10:24 AM
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
Hi Thom,
it is is just giving the permissions to users on files
Regards,
Ramarao.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.