From: Keith Bostic Date: Sun, 22 Mar 1992 03:16:53 +0000 (-0800) Subject: root logins should always start with a umask of 022 X-Git-Tag: BSD-4_4-Snapshot-Development~7587 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/014276811065d5d951c5b9d2dc5b0b946a0221b4?hp=e2369b770d82fb3a1b16734e35cefc842c112371 root logins should always start with a umask of 022 SCCS-vsn: etc/root/dot.cshrc 5.3 SCCS-vsn: etc/root/dot.profile 5.2 --- diff --git a/usr/src/etc/root/dot.cshrc b/usr/src/etc/root/dot.cshrc index da028af78c..86638b73b3 100644 --- a/usr/src/etc/root/dot.cshrc +++ b/usr/src/etc/root/dot.cshrc @@ -1,4 +1,3 @@ -alias mail Mail set history=1000 set path=(/sbin /usr/sbin /bin /usr/bin /usr/local /usr/hosts /usr/contrib .) @@ -22,3 +21,5 @@ alias tset 'set noglob histchars=""; eval `\tset -s \!*`; unset noglob histchars if ($?prompt) then set prompt="`hostname -s`# " endif + +umask 022 diff --git a/usr/src/etc/root/dot.profile b/usr/src/etc/root/dot.profile index 47effabab9..77e4c63f1e 100644 --- a/usr/src/etc/root/dot.profile +++ b/usr/src/etc/root/dot.profile @@ -3,5 +3,6 @@ echo 'erase ^?, kill ^U, intr ^C' stty crt erase  kill  intr  export PATH HOME=/root -export HOME -export TERM +export HOME TERM + +umask 022