aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-09 15:46:22 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-09 15:46:22 +0000
commit8f1135461ee0e2621b23e75824bed3174e909d1b (patch)
treed91998a46dd7bde1c2c7e8db2d6895fe904edb64 /init-sh
parent15cf5616a22ee439df57846774e2f6d524a8c713 (diff)
downloadmsec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar
msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar.gz
msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar.bz2
msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar.xz
msec-8f1135461ee0e2621b23e75824bed3174e909d1b.zip
*** empty log message ***
Diffstat (limited to 'init-sh')
-rwxr-xr-xinit-sh/custom.sh2
-rwxr-xr-xinit-sh/level4.sh2
-rw-r--r--init-sh/lib.sh12
3 files changed, 8 insertions, 8 deletions
diff --git a/init-sh/custom.sh b/init-sh/custom.sh
index 459d0c8..c6963a9 100755
--- a/init-sh/custom.sh
+++ b/init-sh/custom.sh
@@ -68,7 +68,7 @@ if [ ${answer} == "yes" ]; then
fi
###
-echo "Do you want your system to check for permission problem ?"
+echo "Do you want your system to check for grave permission problem on senssibles files ?"
WaitAnswer; clear
if [ ${answer} == "yes" ]; then
AddRules "CHECK_PERMS=yes" /etc/security/msec/security.conf
diff --git a/init-sh/level4.sh b/init-sh/level4.sh
index 6745ae5..a5ba70d 100755
--- a/init-sh/level4.sh
+++ b/init-sh/level4.sh
@@ -105,7 +105,7 @@ echo -e "done.\n";
# /etc/profile
echo "Setting umask to 022 (u=rw,g=rx) for root, 077 (u=rw) for user :"
-AddRules "if [ \${UID} == 0 ]; then umask 022; else umask 077; fi" /etc/profile
+AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/profile
echo "Adding \"normal\" PATH variable :"
AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games" /etc/profile quiet
AddRules "export PATH SECURE_LEVEL" /etc/profile
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index ec14082..ec14be3 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -4,7 +4,7 @@
#
# Need root access
-if [ ${UID} != 0 ]; then
+if [[ ${UID} != 0 ]]; then
echo "You need to be root in order to change secure level."
exit 1
fi
@@ -54,7 +54,7 @@ CleanRules() {
touch ${file}
while read line; do
- if [ ${ctrl} == 1 ]; then
+ if [[ ${ctrl} == 1 ]]; then
ctrl=0
continue;
fi
@@ -63,7 +63,7 @@ CleanRules() {
ctrl=1
fi
- if [ ${ctrl} == 0 ]; then
+ if [[ ${ctrl} == 0 ]]; then
echo "${line}" >> ${file}
fi
done < /tmp/secure.tmp
@@ -96,13 +96,13 @@ CommentUserRules() {
}
Syslog() {
- if [ "${SYSLOG_WARN}" == "yes" ]; then
+ if [[ ${SYSLOG_WARN} == yes ]]; then
/sbin/initlog --string=${1}
fi
}
Ttylog() {
- if [ "${TTY_WARN}" == "yes" ]; then
+ if [[ ${TTY_WARN} == yes ]]; then
w | grep -v "load\|TTY" | awk '{print $2}' | while read line; do
echo -e ${1} > /dev/$i
done
@@ -116,7 +116,7 @@ LiloUpdate() {
echo "Be very carefull,"
echo "this will prevent your server to reboot without an operator to enter password".
WaitAnswer;
- if [ "${answer}" == "yes" ]; then
+ if [[ ${answer} == yes ]]; then
echo -n "Please enter the password which will be used at boot time : "
read password
else