running programs as nonroot user

Raul A . Gallegos raul.a.gallegos at mail.sprint.com
Thu Oct 25 09:09:14 EDT 2001


frankiec at braille.uwo.ca said the following on Wed, Oct 24, 2001 at 08:35:48PM -0400:
> What?  I think you are greatly mistaken.  rc.local is the last init script
> that is to be run.  If you want things to happen on login you use your own
> personal profile which in most cases would be ~username/.bash_profile.  If
> you want it to take place on system wide logins it belongs in
> /etc/profile.  But I still don't really understand your question.

Mostly.  There are times for example if you host mud servers on your
host that you would want them to come up in case your server reboots.
You normally for example run circle mud server like this

nohup ./autorun &

The autorun script is the script that runs the circle binary and must
be run as the user who owns the mud.  However if the server reboots for 
any reason and you want your game to start automatically you would
either have to have a way that it's run automatically from a .bashrc or 
.profile file which I have not been able to figure out or have it run
from rc.local with the su user -c "nohup /home/user/autorun > /dev/null 
2>&1 &"

Raul A. Gallegos -- Sprint BWG Systems Administration
Network Operations Center 9300 Metcalf Ave. Overland Park, KS 66212
Office:913/534.5603	PCS:913/488.3011
mailto:raul.a.gallegos at mail.sprint.com





More information about the Speakup mailing list