aboutsummaryrefslogtreecommitdiffstats
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
parent3973900674e900d357bc88e511a86b2d724b9392 (diff)
downloadmsec-18228772b4d4d9960e3d7b10293519b50287695e.tar
msec-18228772b4d4d9960e3d7b10293519b50287695e.tar.gz
msec-18228772b4d4d9960e3d7b10293519b50287695e.tar.bz2
msec-18228772b4d4d9960e3d7b10293519b50287695e.tar.xz
msec-18228772b4d4d9960e3d7b10293519b50287695e.zip
*** empty log message ***
-rw-r--r--ChangeLog5
-rwxr-xr-xcron-sh/diff_check.sh3
-rwxr-xr-xcron-sh/security_check.sh2
-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
7 files changed, 7 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog
index 3112ce9..ac854b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-15-10 Yoann Vandoorselaere <yoann@mandrakesoft.com>
+ * Fixed a little problem with the DRAKX_USERS variable
+ * removed chattr +a because of the problem it can cause to
+ other system automated system task
+
1999-13-10 Yoann Vandoorselaere <yoann@mandrakesoft.com>
* Documentation
* diff_check.sh : Fix a typo.
diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh
index 0d6d0de..62d52e8 100755
--- a/cron-sh/diff_check.sh
+++ b/cron-sh/diff_check.sh
@@ -49,9 +49,6 @@ if [[ ! -d /var/log/security ]]; then
mkdir /var/log/security
fi
-chattr -a /var/log/security/ >& /dev/null
-chattr -a /var/log/security/* >& /dev/null
-
rm -f ${TMP} ${SECURITY_TMP} >& /dev/null
### Functions ###
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh
index 6686dd3..800b0c0 100755
--- a/cron-sh/security_check.sh
+++ b/cron-sh/security_check.sh
@@ -23,8 +23,6 @@ if [[ ! -d /var/log/security ]]; then
mkdir /var/log/security
fi
-chattr -a /var/log/security/ >& /dev/null
-chattr -a /var/log/security/* >& /dev/null
rm -f ${SECURITY} ${TMP} >& /dev/null
### Functions ###
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