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
Life of a Geek Admin
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.