Root privileges in VFS module

simo idra at samba.org
Fri Aug 31 20:28:58 GMT 2007


On Fri, 2007-08-31 at 23:12 +0400, Александр Корков wrote:
> Hi All,
> 
> I wrote my VFS module.
> I need use root privileges when guests connect to the my 
> services,  but smbd runs process from user nobody...
> How I can get root privileges in my VFS module?
> (I want to write some files in )
> Even on a short time interval.

become_root();

<code>

unbecome_root();


Simo.

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



More information about the samba-technical mailing list