aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-01 16:30:19 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-01 16:30:19 +0000
commit7ee5ce2586bdd320ad2c70d58b23af9f771ae57f (patch)
tree79fc10574cc5922ebea94ac8d02a1ee142806496 /init-sh
parent5f7a190f91beac8a3c1363242799d3566d27a57f (diff)
downloadmsec-7ee5ce2586bdd320ad2c70d58b23af9f771ae57f.tar
msec-7ee5ce2586bdd320ad2c70d58b23af9f771ae57f.tar.gz
msec-7ee5ce2586bdd320ad2c70d58b23af9f771ae57f.tar.bz2
msec-7ee5ce2586bdd320ad2c70d58b23af9f771ae57f.tar.xz
msec-7ee5ce2586bdd320ad2c70d58b23af9f771ae57f.zip
*** empty log message ***
Diffstat (limited to 'init-sh')
-rwxr-xr-xinit-sh/level1.sh4
-rwxr-xr-xinit-sh/level2.sh4
-rw-r--r--init-sh/lib.sh30
3 files changed, 20 insertions, 18 deletions
diff --git a/init-sh/level1.sh b/init-sh/level1.sh
index 7980fa0..919bbbe 100755
--- a/init-sh/level1.sh
+++ b/init-sh/level1.sh
@@ -64,8 +64,8 @@ AddRules "PATH=\$PATH:/usr/X11R6/bin:." /etc/profile quiet
AddRules "export PATH SECURE_LEVEL" /etc/profile
# Group
-echo -n "Adding \"${USERS_DRAKX}\" to audio group :"
-for user in ${USERS_DRAKX}; do
+echo -n "Adding \"${DRAKX_USERS}\" to audio group :"
+for user in ${DRAKX_USERS}; do
usermod -G audio "${user}"
done
echo "done."
diff --git a/init-sh/level2.sh b/init-sh/level2.sh
index 4ac487f..083c9ea 100755
--- a/init-sh/level2.sh
+++ b/init-sh/level2.sh
@@ -63,8 +63,8 @@ echo "Adding \"normal\" PATH variable :"
AddRules "PATH=\$PATH:/usr/X11R6/bin" /etc/profile quiet
AddRules "export PATH SECURE_LEVEL" /etc/profile
# Group
-echo -n "Adding \"${USERS_DRAKX}\" to audio group :"
-for user in ${USERS_DRAKX}; do
+echo -n "Adding \"${DRAKX_USERS}\" to audio group :"
+for user in ${DRAKX_USERS}; do
usermod -G audio "${user}"
done
echo "done." \ No newline at end of file
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index ec5e2dd..47bbcec 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -9,19 +9,6 @@ if [ $UID != 0 ]; then
exit 1
fi
-# To avoid error, while new initscript package isn't released...
-touch /etc/rc.d/rc.firewall
-
-# If we are currently installing our
-# system with DrakX, we don't ask anything to the user...
-# Instead, DrakX do it and give us a file with some variable.
-if [ -f /tmp/secure.DrakX ]; then
- . /tmp/secure.DrakX
-fi
-
-if [ -f /etc/security/msec/security.conf ]; then
- . /etc/security/msec/security.conf
-fi
COMMENT="# Mandrake-Security : if you remove this comment, remove the next line too."
@@ -149,6 +136,21 @@ LiloUpdate() {
fi
}
+# If we are currently installing our
+# system with DrakX, we don't ask anything to the user...
+# Instead, DrakX do it and give us a file with some variable.
+if [ -f /tmp/secure.DrakX ]; then
+ . /tmp/secure.DrakX
+ AddRules "${DRAKX_USERS}" /etc/security/msec/security.conf
+fi
+
+if [ -f /etc/security/msec/security.conf ]; then
+ . /etc/security/msec/security.conf
+fi
+
+# To avoid error, while new initscript package isn't released...
+touch /etc/rc.d/rc.firewall
+
clear
echo "Preparing to run security script : "
CleanRules /etc/syslog.conf
@@ -180,7 +182,7 @@ usermod -G xgrp xfs
# so we delete ( temporarily ) audio user.
if [ ! -f /tmp/secure.DrakX ]; then
- for user in ${USERS_DRAKX}; do
+ for user in ${DRAKX_USERS}; do
if ! /etc/security/msec/init-sh/grpuser --del audio "${user}"; then
echo "Problem removing user \"${user}\" from group audio."
fi