Re: One process with multiple user ids.

2007-10-08 Thread Helge Hafting
Giuliano Gagliardi wrote: On Tuesday 02 October 2007, Jan Engelhardt wrote: On Oct 2 2007 12:56, Giuliano Gagliardi wrote: I have a server that has to switch to different user ids, but because it does other complex things, I would rather not have it run as root. I only need the server t

Re: One process with multiple user ids.

2007-10-02 Thread Bill Davidsen
Giuliano Gagliardi wrote: Hello, I have a server that has to switch to different user ids, but because it does other complex things, I would rather not have it run as root. I only need the server to be able to switch to certain pre-defined user ids. I have seen that two possible solutions ha

Re: One process with multiple user ids.

2007-10-02 Thread David Newall
Giuliano Gagliardi wrote: I have a server that has to switch to different user ids, but because it does other complex things, I would rather not have it run as root. I only need the server to be able to switch to certain pre-defined user ids. Why don't you use group security instead of user se

Re: One process with multiple user ids.

2007-10-02 Thread Chris Snook
Giuliano Gagliardi wrote: Hello, I have a server that has to switch to different user ids, but because it does other complex things, I would rather not have it run as root. Well, it's probably going to have to *start* as root, or use something like sudo. It's probably easiest to have it sta

Re: One process with multiple user ids.

2007-10-02 Thread Mark Lord
Giuliano Gagliardi wrote: On Tuesday 02 October 2007, Jan Engelhardt wrote: On Oct 2 2007 12:56, Giuliano Gagliardi wrote: I have a server that has to switch to different user ids, but because it does other complex things, I would rather not have it run as root. I only need the server to be abl

Re: One process with multiple user ids.

2007-10-02 Thread Jan Engelhardt
On Oct 2 2007 13:39, Giuliano Gagliardi wrote: >> >> You could write up a LSM that restricts UID changing. > >Would you not consider it more useful to let one process have multiple user >ids? I do not see why they can have multiple group ids, but only (and >exactly) three user ids. It would rai

Re: One process with multiple user ids.

2007-10-02 Thread Giuliano Gagliardi
On Tuesday 02 October 2007, Jan Engelhardt wrote: > On Oct 2 2007 13:33, Giuliano Gagliardi wrote: > >Date: Tue, 2 Oct 2007 13:33:05 +0200 > >From: Giuliano Gagliardi <[EMAIL PROTECTED]> > >To: Jan Engelhardt <[EMAIL PROTECTED]> > >Subject: Re: One process wi

Re: One process with multiple user ids.

2007-10-02 Thread Giuliano Gagliardi
On Tuesday 02 October 2007, Jan Engelhardt wrote: > On Oct 2 2007 12:56, Giuliano Gagliardi wrote: > >I have a server that has to switch to different user ids, but because it > > does other complex things, I would rather not have it run as root. I only > > need the server to be able to switch to ce

Re: One process with multiple user ids.

2007-10-02 Thread Jan Engelhardt
On Oct 2 2007 13:33, Giuliano Gagliardi wrote: >Date: Tue, 2 Oct 2007 13:33:05 +0200 >From: Giuliano Gagliardi <[EMAIL PROTECTED]> >To: Jan Engelhardt <[EMAIL PROTECTED]> >Subject: Re: One process with multiple user ids. > >On Tuesday 02 October 2007, Jan Engelhardt

Re: One process with multiple user ids.

2007-10-02 Thread Jan Engelhardt
On Oct 2 2007 12:56, Giuliano Gagliardi wrote: > >I have a server that has to switch to different user ids, but because it does >other complex things, I would rather not have it run as root. I only need the >server to be able to switch to certain pre-defined user ids. All you need is CAP_SETUID

One process with multiple user ids.

2007-10-02 Thread Giuliano Gagliardi
Hello, I have a server that has to switch to different user ids, but because it does other complex things, I would rather not have it run as root. I only need the server to be able to switch to certain pre-defined user ids. I have seen that two possible solutions have already been suggested her