aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-05-31 03:31:03 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-05-31 03:31:03 +0000
commit33757af4e91c5558b71e6e6a4a99689fb57da06e (patch)
tree16827aedb7593f38bc64b141577af38bd76bd976
parent26aee015b442e196ea474aff29567cd8c6b6a4a4 (diff)
downloadmsec-33757af4e91c5558b71e6e6a4a99689fb57da06e.tar
msec-33757af4e91c5558b71e6e6a4a99689fb57da06e.tar.gz
msec-33757af4e91c5558b71e6e6a4a99689fb57da06e.tar.bz2
msec-33757af4e91c5558b71e6e6a4a99689fb57da06e.tar.xz
msec-33757af4e91c5558b71e6e6a4a99689fb57da06e.zip
check that the root is running the process
-rwxr-xr-xshare/msec5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/msec b/share/msec
index 9a28027..19cc68a 100755
--- a/share/msec
+++ b/share/msec
@@ -10,6 +10,11 @@
# the security level.
#---------------------------------------------------------------
+if [ "`whoami`" != "root" ]; then
+ echo 'msec: sorry, you must be root !'
+ exit 1
+fi
+
LCK=/var/run/msec.pid
function cleanup() {