Bash will drop privileges by default if SUID. To avoid this, simply supply the -p flag.