:~$ man su :~$ su - user -c "myscript.sh" In example, and proof:
`hostname`:~# su - nwheeler -c 'echo `whoami`' nwheeler On 10/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I believe it is safer to run a web application as a non-root user. How make the script that starts the web application behave as if a non-root user started it? Chris -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
-- Nicholas Wheeler Systems Administrator Development InfoStructure -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
