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