[Samba] Change smbpasswd in a cron job

Dennis Duggen lists at duggen.net
Mon Feb 20 11:53:42 GMT 2006


Hi list

For a project we are trying to change the samba password automatically 
in a cron job. Since smbpasswd doesn't allow the password to be entered 
otherwise than though the console (user input). We found a solution to 
the input part though expect. But as thing go expect doesn't work in a 
cron job since it has no tty.

Is there anyone who can point us the right way to a solution.

Thanks in advance.

Dennis


More information about the samba mailing list