Artur Shnayder artur at
Thu Jan 4 20:09:27 GMT 2001

Quoting mgamito at

> Hi!
> I made a C script to work with an html form to allow my users to change
> their 
> passwords.
> Since they use ftp and samba, i've tried to execute smbpasswd and with 
> password sync in smb.conf it should work well.
> The problem is that smbpasswd must have setuid set and it doesn't run
> like 
> this.

 Take a look at sudo application "" . You can run 
it from cgi script with root permissions and with no password. Just use 
something like this


in the sudo configuration file.

> Any ideas to turn this around?
> Thanks in advance.
> Mário Gamito
> pt is for Portugal

   Artur Shnayder                  Voice:   (609)655-5105 x12
   System Manager                  Fax:     (609)655-5114
                                   Email:   artur at
   Compugen Inc                    URL: 

More information about the samba mailing list