I'd try it in the .login script
or (never tried this but would the following command work in rc.local)
exec command << 'su user' << 'user password'

Huge security hole though
Andrew
(PS just guessing here)


On Tue, 20 Jun 2000, Civileme 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

Reply via email to