LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Khai Dao <saigon_ca@yahoo.com>
  To  : Charles Williams \(CEO\) <hosting.mailing.list.account@acnshosting.com>
  Date: Wed, 6 Jun 2001 07:55:43 -0700 (PDT)

Re: /etc/rc2.d

thanks. It works well.
K.d.

--- "Charles Williams (CEO)"
<hosting.mailing.list.account@acnshosting.com> wrote:
> 
> ----- Original Message -----
> From: "Khai Dao" <saigon_ca@yahoo.com>
> To: "Charles Williams (CEO)"
> <hosting.mailing.list.account@acnshosting.com>
> Cc: <linuxsa@linuxsa.org.au>
> Sent: Tuesday, June 05, 2001 10:17 PM
> Subject: Re: /etc/rc2.d
> 
> 
> > Actually I have written the script to turn on netscape
> > server at boot time.  I have a web application and I
> want
> > it turn on the web application  at boot time . The
> daemon
> > runs as regular user.
> > to switch user id at boot time, which command is that
> > chmod +s ?
> 
> Here is a sample from my httpd startup script I use at
> boot.
> 
> su - httpd --command="nohup
> ${TOMCAT_HOME}/bin/startup.sh
> >>${TOMCAT_HOME}/logs/t3.2_jk $
> 
> NOTE: notice that the above command is one line.  There
> is no line break.
> 
> Basically you tell 'su' to execute '--command="command"'
> as '- user'.  If
> you need to pass parameters don't forget your $ or $* as
> needed.
> 
> chuck
> 
> >
> >
> > --- "Charles Williams (CEO)"
> > <hosting.mailing.list.account@acnshosting.com> wrote:
> > >
> > > ----- Original Message -----
> > > From: "Khai Dao" <saigon_ca@yahoo.com>
> > > To: <linuxsa@linuxsa.org.au>
> > > Sent: Tuesday, June 05, 2001 9:50 PM
> > > Subject: /etc/rc2.d
> > >
> > >
> > > > Hello,
> > > > I have a problem to set the scripts to run as a
> > > regular
> > > > user at boot time.
> > > > when I set the scripts at /etc/rc.local/myscripts
> it
> > > runs
> > > > at root user. How do I set it to run at regular
> user?
> > > >
> > > > cheers.
> > > > K.d
> > >
> > > K.d.
> > >
> > > I would imagine that you would want the program the
> > > script calls not to run
> > > as root (such as httpd running as httpd and not
> nobody)
> > > which can be done
> > > with an suid call in the script.
> > >
> > > chuck
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail -
> only $35
> > a year!  http://personal.mail.yahoo.com/
> >
> 
> -- 
> LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa
> on irc.linux.org.au
> To unsubscribe from the LinuxSA list:
>   mail linuxsa-request@linuxsa.org.au with "unsubscribe"
> as the subject
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page