One process with multiple user ids.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Giuliano Gagliardi
Date: Tuesday, October 2, 2007 - 3:56 am

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 here on 
the LKML, but it was some years ago, and nothing like it has been 
implemented.

(1) Having supplementary user ids like there are supplementary group ids and 
system calls getuids() and setuids() that work like getgroups() and 
setgroups()

(2) Allowing processes to pass user and group ids via sockets.

Both (1) and (2) would solve my problem. Now my question is whether there are 
any fundamental flaws with (1) or (2), or whether the right way to solve my 
problem is another one.

Giuliano
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
One process with multiple user ids., Giuliano Gagliardi, (Tue Oct 2, 3:56 am)
Re: One process with multiple user ids., Jan Engelhardt, (Tue Oct 2, 4:23 am)
Re: One process with multiple user ids., Giuliano Gagliardi, (Tue Oct 2, 4:34 am)
Re: One process with multiple user ids., Mark Lord, (Tue Oct 2, 6:23 am)
Re: One process with multiple user ids., Chris Snook, (Tue Oct 2, 10:11 am)
Re: One process with multiple user ids., David Newall, (Tue Oct 2, 3:23 pm)
Re: One process with multiple user ids., Bill Davidsen, (Tue Oct 2, 3:38 pm)
Re: One process with multiple user ids., Helge Hafting, (Mon Oct 8, 3:15 am)