[hunchentoot-devel] setuid & setguid

Nico de Jager ndj at hivsa.com
Wed Jan 17 09:24:03 UTC 2007


Hi all

Form the Hunchentoot documentation:
"On Unix you can use setuid and setgid to change the UID and GID of the 
process directly after the server has been started. (You might want to do 
this if you're using a privileged port like 80.) setuid and setgid can be 
integers (the actual IDs) or strings (for the user and group name 
respectively)."

Does this work on Linux?
Will this change the uid and gid of the running lisp image or only of certain 
threads?

In my instance, I start my LispWorks image as root in order to start the 
server on port 443, and then wish to change the Hunchentoot image to a 
uid/gid with less privileges. Supplying the :setuid and :setgid parameters 
have no effect, though, the uid is still shown as root with ps/top.

I am running LispWorks 5.0.1 and Debian Sarge backports (kernel 2.6.16) with  
hunchentoot 0.4.12.

Thanks.
Nico



More information about the Tbnl-devel mailing list