mikejd42 wrote:
> I am writing a C program that need to run as root. I also need to open
> sockets to other servers which do not need to run on privileged ports.
> 
> Is the a way to spawn a pthread as a different user?

AFAIK, no.  Threads run under the same user context as the process that 
is running.  You will probably have to start a new process under a 
different user to get the proper effect.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to