[Samba] Re: using smbpasswd noninteractively?
paul k
paul at subsignal.org
Thu Aug 21 20:21:05 GMT 2003
Gémes Géza wrote:
> paul k írta:
>
>> hi folks,
>>
>> I'd like to use smbpasswd without getting promted for the pw, there is
>> the -s switch making smbpasswd read from stdin but it still wants to
>> have the pw twice and two "returns". I tried feeding it with "passwd
>> \r passwd \r" and calling smbpasswd from python using os.popen2() and
>> writing to the "stdin" file object but everything failed so far.
>>
>> any ideas?
>>
>> thx
>> Paul
>>
>>
> Have you looked at mkntpwd too?
Found, thanks.
Paul
>
> Good Luck!
>
> Geza Gemes
>
More information about the samba
mailing list