aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-15 09:39:33 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-15 09:39:33 +0000
commit18228772b4d4d9960e3d7b10293519b50287695e (patch)
tree9a6f0aef9a8a74467cb9bcab3dc43cbd26d3ad9f /init-sh
parent3973900674e900d357bc88e511a86b2d724b9392 (diff)
downloadmsec-18228772b4d4d9960e3d7b10293519b50287695e.tar
msec-18228772b4d4d9960e3d7b10293519b50287695e.tar.gz
msec-18228772b4d4d9960e3d7b10293519b50287695e.tar.bz2
msec-18228772b4d4d9960e3d7b10293519b50287695e.tar.xz
msec-18228772b4d4d9960e3d7b10293519b50287695e.zip
*** empty log message ***
Diffstat (limited to 'init-sh')
-rwxr-xr-xinit-sh/custom.sh7
-rwxr-xr-xinit-sh/level4.sh1
-rwxr-xr-xinit-sh/level5.sh1
-rw-r--r--init-sh/lib.sh4
4 files changed, 2 insertions, 11 deletions
diff --git a/init-sh/custom.sh b/init-sh/custom.sh
index cfd67b7..5bb623b 100755
--- a/init-sh/custom.sh
+++ b/init-sh/custom.sh
@@ -13,13 +13,6 @@ fi
clear
###
-echo "Do you want your log file to be in append mode only ?"
-WaitAnswer; clear
-if [[ ${answer} == yes ]]; then
- find /var/log/ -type f -exec chattr +a {} \;
-fi
-
-###
echo "Do you want all system events to be logged on tty12 ?"
WaitAnswer; clear
if [[ ${answer} == yes ]]; then
diff --git a/init-sh/level4.sh b/init-sh/level4.sh
index 4bda2af..874634f 100755
--- a/init-sh/level4.sh
+++ b/init-sh/level4.sh
@@ -15,7 +15,6 @@ fi
# Log in append only mode
echo -e "Changing attribute of /var/log/* to append only...\n"
-chattr +a /var/log/*
# All events logged on tty12
echo "Loging all messages on tty12 : "
diff --git a/init-sh/level5.sh b/init-sh/level5.sh
index dc39415..32f0c8d 100755
--- a/init-sh/level5.sh
+++ b/init-sh/level5.sh
@@ -10,7 +10,6 @@ if [[ -f /etc/security/msec/init-sh/lib.sh ]]; then
fi
echo -e "Changing attribute of /var/log/* to append only...\n"
-chattr +a /var/log/*
# All events logged on tty12
echo "Loging all messages on tty12 : "
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index 429db65..2640ba6 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -21,7 +21,7 @@ WaitAnswer() {
done
}
-AddRules () {
+AddRules() {
string=$1
file=$2
quiet=$3
@@ -224,7 +224,7 @@ if [[ ! -f /tmp/secure.DrakX ]]; then
fi
else
if [[ ! -z ${DRAKX_USERS} ]]; then
- AddRules "${DRAKX_USERS}" /etc/security/msec/security.conf
+ AddRules "DRAKX_USERS=${DRAKX_USERS}" /etc/security/msec/security.conf
fi
fi