System Default Umask in AIX

how to System Default Umask in AIX , and how to modify for individual
prashantchauhanAsked:
Who is Participating?
 
omarfaridCommented:
I think the default is 022 and you can use the umask command in the users' profiles files to change it.

e.g. if a user is using sh or ksh then in the user home dir edit the .profile file and add

umask newmask
0
 
woolmilkporcCommented:
Hi,
you can set a system wide default umask in /etc/profile
The value of the umask is subtracted from a default value, which is 777 for directories and 666 for files.  
The default is 022, which leads to permissions 755 for newly created directories and 644 for newly created files.
As omarfarid wrote, to modify an individual user's umask, add (or change) the appropriate umask statement in the ~/.profile file of the concerned user.
e.g.
umask 002
to have newly created files and directories group-writeable.
 wmp
 
0
 
omarfaridCommented:
I some how do not agree on the statement

"The value of the umask is subtracted from a default value, which is 777 for directories and 666 for files"

It is usually the tool or program that try to create a file or dir with certain permissions which are masked with umask value. Try to compile a file and see what are the a.out perms and try to touch a file and see perms.
0
 
prashantchauhanAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.