[Samba] Setting Initial Passwords
Tony Molloy
tony.molloy at ul.ie
Tue Sep 19 11:18:04 GMT 2006
HI,
I'm trying to write a perl script to "add new users and set initial
passwords" for them using smbpasswd.
The relevant parts of the script are as follows
@tmp = split(/:/,);
$login = $tmp[0];
$password = $tmp[1];
print "$login $password\n";
exec("smbpasswd -a $login -s $password");
The print statement works and I see the username and password. However the
exec statement fails and just dispalys the smbpasswd help screen.
Is it possible to add new accounts and set their initial passwords with
smbpasswd.
Tony
--
Tony Molloy.
Dept. of Comp. Sci.
University of Limerick
More information about the samba
mailing list