Core/bash/umask.sh
2024-09-07 23:18:11 +08:00

7 lines
127 B
Bash

# By default, the umask should be set.
if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
umask 002
else
umask 022
fi