Skip to content

Commit

Permalink
Not overwrite USERGROUP_ENAB on anything but Ubuntu
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TommyTran732 authored Jul 9, 2024
1 parent 6156233 commit 5500bc5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion debian-gnome/debian-gnome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ sudo systemctl mask debug-shell.service
umask 077
sudo sed -i 's/^UMASK.*/UMASK 077/g' /etc/login.defs
sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /etc/login.defs
sudo sed -i 's/^USERGROUPS_ENAB.*/USERGROUPS_ENAB no/g' /etc/login.defs
sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc

# Make home directory private
Expand Down
1 change: 0 additions & 1 deletion fedora-gnome/fedora-gnome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ sudo systemctl mask kdump.service
umask 077
sudo sed -i 's/^UMASK.*/UMASK 077/g' /etc/login.defs
sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /etc/login.defs
sudo sed -i 's/^USERGROUPS_ENAB.*/USERGROUPS_ENAB no/g' /etc/login.defs
sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc

# Make home directory private
Expand Down
1 change: 0 additions & 1 deletion fedora-minimal/fedora-minimal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ systemctl mask kdump.service
umask 077
sudo sed -i 's/^UMASK.*/UMASK 077/g' /etc/login.defs
sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /etc/login.defs
sudo sed -i 's/^USERGROUPS_ENAB.*/USERGROUPS_ENAB no/g' /etc/login.defs
sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc

# Make home directory private
Expand Down
1 change: 0 additions & 1 deletion whonix/whonix-gw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ unpriv(){
umask 077
sudo sed -i 's/^UMASK.*/UMASK 077/g' /etc/login.defs
sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /etc/login.defs
sudo sed -i 's/^USERGROUPS_ENAB.*/USERGROUPS_ENAB no/g' /etc/login.defs
sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc

# Make home directory private
Expand Down
1 change: 0 additions & 1 deletion whonix/whonix-ws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ unpriv(){
umask 077
sudo sed -i 's/^UMASK.*/UMASK 077/g' /etc/login.defs
sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /etc/login.defs
sudo sed -i 's/^USERGROUPS_ENAB.*/USERGROUPS_ENAB no/g' /etc/login.defs
sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc

# Make home directory private
Expand Down

0 comments on commit 5500bc5

Please sign in to comment.