Subject: Re: set-uid scripts
To: David Forbes <david@flossy.u-net.com>
From: Bill Studenmund <wrstuden@nas.nasa.gov>
List: current-users
Date: 10/30/1999 15:02:42
On Sat, 30 Oct 1999, R. C. Dowdeswell wrote:

> 
> On 941317967 seconds since the Beginning of the UNIX epoch
> David Forbes wrote:
> >
> >Summary: I'd really like to be able to execute a script at start up as a
> >user other than root.  Easy I thought: chmod u+s.  However, top suggests
> >otherwise.  How can I get around this?

Either follow the suggestions below, or add "options SETUIDSCRIPTS" to
your kernel config.

> Generally I do this by:
> 
> 	su user -c /path/to/script
> 
> Which, until someone corrects me, seems to do the right thing.  ;)

This method seems better to me. :-) Plus, you can do that in rc.local.

sudo might be a good option for being able to stop and restart the script.

Take care,

Bill