aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-14 16:35:07 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-14 16:35:07 +0000
commit0f480b97b806558927c656b236c2f08e7c12742f (patch)
treeea2d9feb2bb8e522689a1bb0489a7476a62849e1
parentd17df3d631041b3c6c0f00e191efbef3058b7f0d (diff)
downloadmsec-0f480b97b806558927c656b236c2f08e7c12742f.tar
msec-0f480b97b806558927c656b236c2f08e7c12742f.tar.gz
msec-0f480b97b806558927c656b236c2f08e7c12742f.tar.bz2
msec-0f480b97b806558927c656b236c2f08e7c12742f.tar.xz
msec-0f480b97b806558927c656b236c2f08e7c12742f.zip
*** empty log message ***
-rw-r--r--ChangeLog1
-rwxr-xr-xinit-sh/level1.sh7
-rwxr-xr-xinit-sh/level2.sh3
-rw-r--r--init-sh/lib.sh2
4 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3112ce9..0665353 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
1999-13-10 Yoann Vandoorselaere <yoann@mandrakesoft.com>
+ * User are added in mail group in level 1 & 2
* Documentation
* diff_check.sh : Fix a typo.
diff --git a/init-sh/level1.sh b/init-sh/level1.sh
index b3d4488..30bf76a 100755
--- a/init-sh/level1.sh
+++ b/init-sh/level1.sh
@@ -75,9 +75,10 @@ AddBegRules "/usr/X11R6/bin/xhost + localhost" /etc/X11/xinit/xinitrc
# Group
if [[ ! -z ${DRAKX_USERS} ]]; then
- echo -n "Adding \"${DRAKX_USERS}\" to audio group :"
+ echo -n "Adding \"${DRAKX_USERS}\" to audio & mail group :"
for user in ${DRAKX_USERS}; do
usermod -G audio "${user}"
+ usermod -G mail "${user}"
done
echo "done."
fi
@@ -86,3 +87,7 @@ fi
+
+
+
+
diff --git a/init-sh/level2.sh b/init-sh/level2.sh
index 7f68980..e8ab1bd 100755
--- a/init-sh/level2.sh
+++ b/init-sh/level2.sh
@@ -72,9 +72,10 @@ AddBegRules "/usr/X11R6/bin/xhost + localhost" /etc/X11/xinit/xinitrc
# Group
if [[ ! -z ${DRAKX_USERS} ]]; then
- echo -n "Adding \"${DRAKX_USERS}\" to audio group :"
+ echo -n "Adding \"${DRAKX_USERS}\" to audio & mail group :"
for user in ${DRAKX_USERS}; do
usermod -G audio "${user}"
+ usermod -G mail "${user}"
done
echo "done."
fi
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index 429db65..d9566e3 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -208,6 +208,7 @@ echo "Setting spoofing protection : "
AddRules "echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter" /etc/rc.d/rc.firewall
# default group which must exist on the system
+groupadd mail >& /dev/null
groupadd nogroup >& /dev/null
groupadd audio >& /dev/null
groupadd xgrp >& /dev/null
@@ -220,6 +221,7 @@ if [[ ! -f /tmp/secure.DrakX ]]; then
if [[ ! -z ${DRAKX_USERS} ]]; then
for user in ${DRAKX_USERS}; do
/etc/security/msec/init-sh/grpuser --del audio "${user}"
+ /etc/security/msec/init-sh/grpuser --del mail "${user}"
done
fi
else