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

Re: why does start-stop-daemon not support --chgid ?



On Fri, Nov 19, 1999 at 09:30:49AM +1100, Herbert Xu wrote:
> Ethan Benson <erbenson@alaska.net> wrote:
> > I have been looking at the start-stop-daemon for starting a program 
> > as non root, but I found that --chuid only changes the user id, and 
> > runs the process as gid 0 root, I think it would be better to be able 
> > to start the process not only as a different user but as a different 
> > group as well..
> 
> > why does start-stop-daemon not support this?
> 
> Indeed, it should also call setgroups.

The current CVS now has a call to initgroups() and also allows the --chuid
arg to be in the form of "user.group".

Ben

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`     bcollins@debian.org  -  collinbm@djj.state.va.us  -  bmc@visi.net    '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'


Reply to: