diff --git a/bin/motds32 b/bin/motds32 index f89fb14..a3d4a8f 100755 --- a/bin/motds32 +++ b/bin/motds32 @@ -10,8 +10,11 @@ # Copyright 2013 Pavol Krigler # - +if [[ $EUID -ne 0 ]]; then + echo "Need root" 1>&2 /etc/motds32/Stats32 > /etc/motds32/Stats32.txt +fi + # Path to the configuration file CONFIGFILE="/etc/motds32/motds32.conf"