Assuming you are the root user on a Linux computer, here's a quick example of how to run a program on a Linux system through a crontab entry, with the program being executed as the user nobody.
Just put this entry in a crontab file (by issuing the "crontab -e
" command, for example), and the program named myProgram.sh
will be run at 1:30 a.m. using the Bourne shell, and will be run as the user nobody
.
30 1 * * * su -c '/path/to/program/myProgram.sh' -s /bin/sh nobody
testing is always recommended, but this has worked for me.