Lx4U-book/docs/scripts/umask.sh
2021-11-04 19:24:31 +03:00

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