From 33757af4e91c5558b71e6e6a4a99689fb57da06e Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Fri, 31 May 2002 03:31:03 +0000 Subject: check that the root is running the process --- share/msec | 5 +++++ 1 file changed, 5 insertions(+) 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() { -- cgit v1.2.1