diff options
author | Frederic Lepied <flepied@mandriva.com> | 2002-05-31 03:31:03 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2002-05-31 03:31:03 +0000 |
commit | 33757af4e91c5558b71e6e6a4a99689fb57da06e (patch) | |
tree | 16827aedb7593f38bc64b141577af38bd76bd976 | |
parent | 26aee015b442e196ea474aff29567cd8c6b6a4a4 (diff) | |
download | msec-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-x | share/msec | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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() { |