[Samba] Do anyone know the solution...

Komal Nawandar komal at linsyssoft.com
Thu Nov 23 13:48:30 GMT 2006


On Thu, 2006-11-23 at 15:30 +0100, Cardon Denis wrote:
> Hi Komal,
> > Hi all,
> > 	This is my query.
> > 	Let me explain the environment first.
> > 	I have to write a perl-cgi script to add a user in samba.
> > 	I will be accessing this script through apache server, in short i am
> > making a web page to add samba user.
> > 	
> > 	My query is how can i add user with "smbpasswd" command and giving
> > password as command line argument. 
> > 	In normal scenario i get a prompt asking for password, but i don't want
> > that. 
> > 	I want the command i can give to my perl-cgi script.
> >
> > 	Can anybody help me please.
> >   
> Using Expect, you can script an interactive command line session. I have 
> already used it with smbldap-passwd and it works great.
Does it (EXPECT) take password of user as a command line argument? We
don't want an interactive session as CGI-PERL script will provide the
password and username to smbpasswd or whatever command.
> 
> Cheers,
> 
> Denis
> 
> 
> > Komal.
> >
> >   
> 
> 



More information about the samba mailing list