Originally Posted by pinga123
I was going through a security manual for linux server.
At certain point it was mentioned that
files for shell configuration Such as ~root/.login, ~root/.logout, ~root/.cshrc and ~root/.profile, ~/root/.kshrc ~/root/.bash* must be owned by root and must have permissions of 0400, 0600 or 0700
Now i m confused as what does 0 stands for.
According to me first digit is for user second for group and 3rd for others.
How would i set this in my environment?
Your concept is right , but from that 4 number the 1st one stands for
special permission(SUID,SGID,STICKYBIT),2nd for file owner permission,3rd group owner permmission and the 4th is for other owner permission.
You can google about all these permission issues and how to set them and in which condition the special permission are applied ..