Probably the user nobody has the program /usr/sbin/nologin as its login shell, which prints the message you have quoted and then exits.
Possible solutions are (1) use sudo as I suggested, not su (2) convince su not to spawn a login shell (no - in the command line) or (3) give the user nobody a different login shell.
In reply to Re^3: How to run a perl script under "nobody" user?
by moritz
in thread How to run a perl script under "nobody" user?
by sunshine_august
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |