# if root, su command as monkeysphere user
'root')
# requote arguments using bash builtin feature (see "help printf"):
su "$MONKEYSPHERE_USER" -c "$(printf "%q " "$@")"
su -s /bin/bash "$MONKEYSPHERE_USER" -c "$(printf "%q " "$@")"
;;
# otherwise, fail