From e67668499a78f14f6022c0b01ce685c4a313cecd Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Tue, 14 Sep 2004 19:35:59 +0000 Subject: [PATCH] Added extra check for root without environment of mbse --- checkbasic | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/checkbasic b/checkbasic index 2dac4920..9fb1290d 100755 --- a/checkbasic +++ b/checkbasic @@ -1,13 +1,13 @@ #!/bin/sh # +# $Id$ +# # checkbasic - A script for mbse bbs that checks if your # installation is correct. If it is then # normal installation is allowed. If it is # pristine, basic installation must be done. # If it bad or incomplete installed it will # give an errormessage. -# -# v1.00 08-Oct-2000 (c) Michiel Broek. if [ "`grep mbse: /etc/passwd`" != "" ]; then if [ "`grep bbs: /etc/group`" != "" ]; then @@ -23,7 +23,10 @@ if [ "`grep mbse: /etc/passwd`" != "" ]; then exit 1 fi else - echo "*** MBSE_ROOT environment is not set or you are not 'mbse' ***" + echo "*** MBSE_ROOT environment is not set or you are not 'mbse' ***" + if [ "$LOGNAME" = "root" ]; then + echo "*** You seem to be root, did you use 'su -' instead of 'su' ***" + fi exit 1 fi else