Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CMASK & UMASK in Solaris 10 - Beginner Question

339 views
Skip to first unread message

underh20.s...@gmail.com

unread,
Mar 23, 2009, 5:16:28 PM3/23/09
to
Hello,

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

ThanksButNo

unread,
Mar 23, 2009, 5:46:08 PM3/23/09
to

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

/:-/

Casper H.S. Dik

unread,
Mar 24, 2009, 6:11:12 AM3/24/09
to
underh20.s...@gmail.com writes:

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.

0 new messages