[Samba] wbinfo needs a -s command similar to smbpasswd -s (as does net rpc join)

Tom Dickson tdickson at inostor.com
Wed Aug 27 22:02:25 GMT 2003


>On Wed, 27 Aug 2003, Tom Dickson wrote:

>> It would be very helpful if wbinfo could take a password on STDIN in a
>> manner similar to the way smbpasswd -s works.
>>
>> Is this feasible? Otherwise it is very hard to get a script to pass a
>> password like "@bob&bob *!" to wbinfo --set-auth-user=username%@bob&bob
*!

>wbinfo --set-auth-user='username%@bob&bob *!' doesn't work?

That does work, but I'm looking for a general fix, and the password
**@bob'bob** would cause the above to fail.

The -s option for smbpassword is very nice; being able to join the domain
and so forth without exposing the password to ps is a feature, I think.

I'd use expect except I can't figure it out! :(




More information about the samba mailing list