Michael Stearne <[EMAIL PROTECTED]> writes:

> How can I at start up run a command as a certain user.  I want to run
> /usr/local/bin/vncserver as UID 500 at startup.  I am using RH 6.1.
> Does this go in /etc/rc.local, if so, how do I assign that UID to the
> process?

su <username> -c <application>

man su for more details, but you can't do it by uid just username.

rc.local is run by root so no password will be requested.

rw2

-- 
 "Debugging is at least twice as hard as programming. If your code is
 as clever as you can possibly make it, then by definition you're not
 smart enough to debug it."  
-- Brian Kernighan

Reply via email to