mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-02-12 23:19:05 +08:00
11 lines
182 B
Markdown
11 lines
182 B
Markdown
|
```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
|
||
|
```
|