su userid -c \"command line\" -s shell path
See the start case in /etc/rc.d/init.d/xfs for an example.
On Mon, 19 Jun 2000, you wrote:
> Sevatio Octavio wrote:
> >
> > Typically if I wanted to run something automatically at bootup, I would put a
>statement into /etc/rc.d/rc.local . Those apps will
> > run under the ownership of 'root'. How do you get rc.local to run apps under a
>specific user?
> >
> > Seve
> I would simply put it into the appropriate user's .bashrc (or
> whatever shell you are talking about)
>
> Or, if it is to be run as, say, nobody, I would put a call to
> setuid() in the source of the program and recompile.
>
> Sheesh, maybe there is a simpler way... Anyone?
>
> Civileme