running programs as nonroot user

Steve Holmes steve at holmesgrown.com
Thu Oct 25 10:15:48 EDT 2001


This also reminds me of postgres SQL server. It is supposed to be started
by the postgres super user and not root like most other system tasks. Same
idea.

On Thu, 25 Oct 2001, Raul A . Gallegos wrote:

RG> frankiec at braille.uwo.ca said the following on Wed, Oct 24, 2001 at 08:35:48PM -0400:
RG> > What?  I think you are greatly mistaken.  rc.local is the last init script
RG> > that is to be run.  If you want things to happen on login you use your own
RG> > personal profile which in most cases would be ~username/.bash_profile.  If
RG> > you want it to take place on system wide logins it belongs in
RG> > /etc/profile.  But I still don't really understand your question.
RG>
RG> Mostly.  There are times for example if you host mud servers on your
RG> host that you would want them to come up in case your server reboots.
RG> You normally for example run circle mud server like this
RG>
RG> nohup ./autorun &
RG>
RG> The autorun script is the script that runs the circle binary and must
RG> be run as the user who owns the mud.  However if the server reboots for
RG> any reason and you want your game to start automatically you would
RG> either have to have a way that it's run automatically from a .bashrc or
RG> .profile file which I have not been able to figure out or have it run
RG> from rc.local with the su user -c "nohup /home/user/autorun > /dev/null
RG> 2>&1 &"
RG>
RG> Raul A. Gallegos -- Sprint BWG Systems Administration
RG> Network Operations Center 9300 Metcalf Ave. Overland Park, KS 66212
RG> Office:913/534.5603	PCS:913/488.3011
RG> mailto:raul.a.gallegos at mail.sprint.com
RG>
RG>
RG> _______________________________________________
RG> Speakup mailing list
RG> Speakup at braille.uwo.ca
RG> http://speech.braille.uwo.ca/mailman/listinfo/speakup
RG>





More information about the Speakup mailing list