aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-08 10:04:25 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-08 10:04:25 +0000
commitf4ba01f701a60e56b8d9f1a1322f10a6544e3602 (patch)
tree70d51a08f0afa917b2eaf548c008492cd04f1d92 /init-sh
parent5479a5bebbb93b523626bc9fbc720c6572d71def (diff)
downloadmsec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.tar
msec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.tar.gz
msec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.tar.bz2
msec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.tar.xz
msec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.zip
*** empty log message ***
Diffstat (limited to 'init-sh')
-rwxr-xr-xinit-sh/file_perm.sh6
-rwxr-xr-xinit-sh/level3.sh2
-rwxr-xr-xinit-sh/level4.sh2
-rwxr-xr-xinit-sh/level5.sh2
4 files changed, 4 insertions, 8 deletions
diff --git a/init-sh/file_perm.sh b/init-sh/file_perm.sh
index be834b7..acce5c0 100755
--- a/init-sh/file_perm.sh
+++ b/init-sh/file_perm.sh
@@ -5,11 +5,7 @@ IFS="
echo -n "Setting files permissions : "
-for line in `cat /$1`; do
- file=`echo ${line} | awk '{print $1}'`
- owner=`echo ${line} | awk '{print $2}'`
- perm=`echo ${line} | awk '{print $3}'`
-
+cat $1 | while read file owner perm; do
if [ -a "${file}" ]; then
if [ ${owner} != "current" ]; then
chown ${owner} ${file}
diff --git a/init-sh/level3.sh b/init-sh/level3.sh
index 42b4542..5859689 100755
--- a/init-sh/level3.sh
+++ b/init-sh/level3.sh
@@ -58,7 +58,7 @@ echo -e "\t- Security warning in syslog : \"yes\" :"
# Crontab
echo "Adding permission check in crontab (scheduled every midnight) :"
-AddRules "0 0-23 * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/file_check.sh" /etc/crontab
+AddRules "0 0 * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/file_check.sh" /etc/crontab
echo -n "Running lilo to record new config : "
/sbin/lilo >& /dev/null
diff --git a/init-sh/level4.sh b/init-sh/level4.sh
index 5f2a79c..00ea93d 100755
--- a/init-sh/level4.sh
+++ b/init-sh/level4.sh
@@ -71,7 +71,7 @@ echo "Adding promisc check in crontab (scheduled every minutes) :"
AddRules "*/1 * * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/promisc_check.sh" /etc/crontab
echo "Adding permission check in crontab (scheduled every midnight) :"
-AddRules "0 0-23 * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/file_check.sh" /etc/crontab
+AddRules "0 0 * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/file_check.sh" /etc/crontab
# Do you want a password ?
LiloUpdate;
diff --git a/init-sh/level5.sh b/init-sh/level5.sh
index 6b90e59..272267f 100755
--- a/init-sh/level5.sh
+++ b/init-sh/level5.sh
@@ -63,7 +63,7 @@ echo "Adding promisc check in crontab (scheduled every minutes) :"
AddRules "*/1 * * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/promisc_check.sh" /etc/crontab
echo "Adding permission check in crontab (schedued every midnight) :"
-AddRules "0 0-23 * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/file_check.sh" /etc/crontab
+AddRules "0 0 * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/file_check.sh" /etc/crontab
###################################################
# Wanna a password ?