mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-21 09:01:34 -05:00
Not overwrite USERGROUP_ENAB on anything but Ubuntu
The nonsense with umask is introduced by Canonical's infinite wisdom: https://git.launchpad.net/ubuntu/+source/pam/tree/debian/patches/pam_umask_usergroups_from_login.defs.patch?h=ubuntu/noble https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=583958 We don't need to break sensible distributions because of Ubuntu nonsenses Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
a5e2f37b75
commit
4b7a2682bd
@ -596,7 +596,6 @@ fi
|
||||
## Set umask to 077.
|
||||
sed -i 's/^UMASK.*/UMASK 077/g' /mnt/etc/login.defs
|
||||
sed -i 's/^HOME_MODE/#HOME_MODE/g' /mnt/etc/login.defs
|
||||
sed -i 's/^USERGROUPS_ENAB.*/USERGROUPS_ENAB no/g' /mnt/etc/login.defs
|
||||
sed -i 's/umask 022/umask 077/g' /mnt/etc/bash.bashrc
|
||||
|
||||
# Finish up
|
||||
|
Loading…
Reference in New Issue
Block a user