Joel Uckelman on Fri, 7 Jan 2005 11:13:33 -0600 (CST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [hosers-talk] unix question


Thus spake "Jon Stewart":
> 
> I have a script that I want to run at boot-time. The obvious place on slackwa
> re to put it 
> is rc.local in /etc/rc.d/, or I could write a separate rc. script for it. (Sl
> ackware has 
> a simple, BSD-style init system; everything's just a shell script.)
> 
> The script will launch a daemon. I want the daemon to run as nobody, not frea
> king root; 
> it doesn't listen to any ports, so this shouldn't be a problem. How do I get 
> root to 
> execute the command as a different user?

Is the daemon something you wrote? If so, maybe it needs to call setuid?
If not, would runuser do what you want?

_______________________________________________
hosers-talk mailing list
hosers-talk@xxxxxxxxxxx
http://lists.ellipsis.cx/mailman/listinfo/hosers-talk