lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master c93babd 3/3: Set umask more aggressively


From: Greg Chicares
Subject: [lmi-commits] [lmi] master c93babd 3/3: Set umask more aggressively
Date: Tue, 12 May 2020 17:00:33 -0400 (EDT)

branch: master
commit c93babd3428f3e58aa866f1546d8b2b7cc4fa65e
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Set umask more aggressively
    
    Moved code to set and display umask into a script that's sourced in
    every other chroot setup script, to ensure that it's the same for
    group as for user whenever any of these scripts is run--no matter
    what shell is used or what /etc/profile prescribes.
---
 install_centos.sh | 2 --
 install_redhat.sh | 2 --
 lmi_setup_inc.sh  | 4 ++++
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/install_centos.sh b/install_centos.sh
index 464bf8f..207fb6f 100755
--- a/install_centos.sh
+++ b/install_centos.sh
@@ -26,8 +26,6 @@ set -evx
 stamp0=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
 echo "Started: $stamp0"
 
-umask g=rwx
-
 # A known corporate firewall blocks gnu.org even on a GNU/Linux
 # server, yet allows github.com:
 if curl https://git.savannah.nongnu.org:443 >/dev/null 2>&1 ; then
diff --git a/install_redhat.sh b/install_redhat.sh
index d3f8d75..abd6d7c 100755
--- a/install_redhat.sh
+++ b/install_redhat.sh
@@ -26,8 +26,6 @@ set -evx
 stamp0=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
 echo "Started: $stamp0"
 
-umask g=rwx
-
 # A known corporate firewall blocks gnu.org even on a GNU/Linux
 # server, yet allows github.com:
 if curl https://git.savannah.nongnu.org:443 >/dev/null 2>&1 ; then
diff --git a/lmi_setup_inc.sh b/lmi_setup_inc.sh
index c10d588..f0fd18a 100755
--- a/lmi_setup_inc.sh
+++ b/lmi_setup_inc.sh
@@ -34,6 +34,10 @@ CODENAME=bullseye
 CHRTVER=1
 CHRTNAME=lmi_${CODENAME}_${CHRTVER}
 
+umask
+umask g=rwx
+umask
+
 set +vx
 
 assert_su()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]