mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-02-19 04:40:25 +08:00
9 lines
170 B
Bash
9 lines
170 B
Bash
|
cat > /etc/profile.d/umask.sh << "EOF"
|
||
|
# By default, the umask should be set.
|
||
|
if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
|
||
|
umask 002
|
||
|
else
|
||
|
umask 022
|
||
|
fi
|
||
|
EOF
|