On Mon, Apr 13, 2009 at 11:46 AM, Res <res@ausics.net>
wrote:> Hi,
> For automation in Perl scripts that add users, trying to add in smbpasswd,
> I'm sure, years ago, there was a way of issuing this without drama, now
it
> seems it wont just take the password, is there a hidden option? or can we
> get "-w" changed so that it inserts the password into the pass
file?
>
> `smbpasswd -a foo -w bar`; ?would be nice and painless for automation
> without writing yet another messy expect script :)
>
>
Maybe this can help you ?
http://www.programmingforums.org/thread6522.html
--
http://vnoss.org