When I su, normally everything works fine and my hostname turns red. When I su now this doesn't happen. Apparently this change is what did it. < if [ "`/usr/bin/whoami`" = 'root' ] --- > if [ "$LOGNAME" = 'root' ] Logname doesn't change to root for some reason, although using whoami shows me as root. If I do an su - it works like it should and logname shows me as root.
Right, change that to '[ "$EUID" -eq 0 ]', it should fix. Commited to CVS.