Got couple simple questions for Unix experts out there. Our Solaris 10
server's /etc/profile file has umask=022 for the last couple years.
We've been asked to set "CMASK=027" in /etc/default/init. Currently,
CMASK is equal to 022 in /etc/default/init. What does the CMASK change
from 022 to 027 do ? Does it affect the permission of any of our
existing files/binaries/directories in the server ?
Thanks for your help,
Bill
Please see: man umask
Essentially you are changing default access permissions
from:
User:rwx Group:r-- Other: r--
Meaning you (the User) can read/write/execute, and everybody
else (Group and Others) in the world can only read.
to:
User:rwx Group:r-- Other: ---
Meaning now only people in your same Group can read, the rest
of the world is locked out.
Changing CMASK should have no effect on existing files, only
new ones. If you want to change existing files, see:
man find
and
man chmod
/:-/
It changes the default permission for newly created files and
directories.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.