Lx4U-book/docs/scripts/umask.md
2021-07-06 12:57:26 +03:00

182 B

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