"BuraphaLinux Server" <[EMAIL PROTECTED]> writes:
> su -p nobody -s /sbin/bash << EOF
> export HOME=/tmp
> # turn off error crashing and turn on tracing
> set +e -x
> # begin the non-root stuff here
> cd /tmp/mindy
> shazbot is not a valid command
> if ((${?}!=0)) # <--- ${?} is zero here not 12
This script, when run as root, gives me this:
BLS #./psycho
+ umask 0022
+ mkdir /tmp/mindy
+ chown nobody.nobody /tmp/mindy
+ set +e
+ su -p nobody -s /sbin/bash
+ cd /tmp/mindy
+ shazbot is not a valid command
/bin/sh: line 6: shazbot: command not found
+ (( 0!=0 ))
+ echo 'should not ever get