Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 0.34 KB | None | 0 0
  1. # By default, we want umask to get set. This sets it for non-login shell.
  2.     # Current threshold for system reserved uid/gids is 200
  3.     # You could check uidgid reservation validity in
  4.     # /usr/share/doc/setup-*/uidgid file
  5.     if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then
  6.        umask 002
  7.     else
  8.        umask 022
  9.     fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement