Using setuid on smbd

simo idra at samba.org
Thu Jul 12 15:08:44 GMT 2007


On Thu, 2007-07-12 at 15:30 +0200, Henrik Zagerholm wrote:
> Hello list,
> 
> I wonder if it is a really bad idea to setuid bit on samba daemons to  
> make them start with root privileges?
> 
> I need it in an embedded systems where the daemons are started by a  
> non root user and I don't have access to sudo etc and we all know  
> that smbd should run under root.

Make a simple setuid helper in C that take care of starting the daemons,
should be a few lines of code.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org



More information about the samba-technical mailing list