search
top
Currently Browsing: Unix

Changing umask based on Group Membership in Solaris 10 in profile

Recently ran into a situation where we needed to make sure that the umask of 002 was set on all the files owned by a specific group.  There are several solutions but one way is to set the umask in the /etc/profile. For Solaris 10 it is set in the profile here. if [ “$LOGNAME” = “root” ] then PS1=”ROOT@`uname -n`# ” ; export PS1 else PS1=”$LOGNAME@`uname -n`$... read more

top