* running programs as nonroot user
@ Gregory Nowak
` Frank Carmickle
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Gregory Nowak @ UTC (permalink / raw)
To: speakup
Hi again,
How does one run a program from /etc/rc.d/rc.local as a normal user and not as root? Thanks.
Greg
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: running programs as nonroot user
running programs as nonroot user Gregory Nowak
@ ` Frank Carmickle
` Jason
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Frank Carmickle @ UTC (permalink / raw)
To: speakup
On Wed, 24 Oct 2001, Gregory Nowak wrote:
> Hi again,
>
> How does one run a program from /etc/rc.d/rc.local as a normal user and not as root? Thanks.
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.
--
Frank Carmickle
phone: 412 761-9568
email: frankiec@dryrose.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: running programs as nonroot user
running programs as nonroot user Gregory Nowak
` Frank Carmickle
@ ` Jason
` Raul A . Gallegos
[not found] ` <Pine.LNX.4.21.0110242030460.181-100000@c1422183-a.ross1.pa.hom>
3 siblings, 0 replies; 7+ messages in thread
From: Jason @ UTC (permalink / raw)
To: speakup
what are you trying to start up? something like an IRC server? in that case
the only way I know of is to make the binary setuid
On Wednesday October 24, 2001 05:29 pm, you wrote:
> Hi again,
>
> How does one run a program from /etc/rc.d/rc.local as a normal user and not
> as root? Thanks. Greg
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: running programs as nonroot user
running programs as nonroot user Gregory Nowak
` Frank Carmickle
` Jason
@ ` Raul A . Gallegos
[not found] ` <Pine.LNX.4.21.0110242030460.181-100000@c1422183-a.ross1.pa.hom>
3 siblings, 0 replies; 7+ messages in thread
From: Raul A . Gallegos @ UTC (permalink / raw)
To: speakup
romualt@megsinet.net said the following on Wed, Oct 24, 2001 at 08:29:52PM -0400:
> How does one run a program from /etc/rc.d/rc.local as a normal user and not as root? Thanks.
Like this:
su username -c "command"
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@mail.sprint.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: running programs as nonroot user
[not found] ` <Pine.LNX.4.21.0110242030460.181-100000@c1422183-a.ross1.pa.hom>
@ ` Raul A . Gallegos
` Steve Holmes
0 siblings, 1 reply; 7+ messages in thread
From: Raul A . Gallegos @ UTC (permalink / raw)
To: speakup
frankiec@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@mail.sprint.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: running programs as nonroot user
` Raul A . Gallegos
@ ` Steve Holmes
0 siblings, 0 replies; 7+ messages in thread
From: Steve Holmes @ UTC (permalink / raw)
To: speakup
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@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@mail.sprint.com
RG>
RG>
RG> _______________________________________________
RG> Speakup mailing list
RG> Speakup@braille.uwo.ca
RG> http://speech.braille.uwo.ca/mailman/listinfo/speakup
RG>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: running programs as nonroot user
@ Gregory Nowak
0 siblings, 0 replies; 7+ messages in thread
From: Gregory Nowak @ UTC (permalink / raw)
To: speakup
Disregard that, I wasn't thinking clearly. Thanks anyway.
Greg
> ----- Original Message -----
>From: Frank Carmickle <frankiec@braille.uwo.ca
>To: speakup@braille.uwo.ca
>Date: Wed, 24 Oct 2001 20:35:48 -0400 (EDT)
>Subject: Re: running programs as nonroot user
>On Wed, 24 Oct 2001, Gregory Nowak wrote:
>> Hi again,
>> How does one run a program from /etc/rc.d/rc.local as a normal user and not as root? Thanks.
>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.
>--
> Frank Carmickle
>phone: 412 761-9568
>email: frankiec@dryrose.com
>_______________________________________________
>Speakup mailing list
>Speakup@braille.uwo.ca
>http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
running programs as nonroot user Gregory Nowak
` Frank Carmickle
` Jason
` Raul A . Gallegos
[not found] ` <Pine.LNX.4.21.0110242030460.181-100000@c1422183-a.ross1.pa.hom>
` Raul A . Gallegos
` Steve Holmes
Gregory Nowak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).