[Samba] RE: $ char in password

Xu, Qiang (FXSGSC) Qiang.Xu at fujixerox.com
Tue Mar 11 07:28:53 GMT 2008


It seems that the "net" binary treat "$1" as something with special meaning, as in shell script. Thus, the password "$1111" -> "111".

Another evidence is that when I change the password for user "abc" from "$1111" to "11$11",
and run the command:
=======================================================
net rpc -I 12.34.56.78 -U abc%11$11 USER INFO abc
=======================================================

The output is still:
=======================================================
main(): opt_user_name is abc%111
main(): opt_password is 111
Could not connect to server 12.34.56.78 The username or password was not correct.
Connection failed: NT_STATUS_LOGON_FAILURE
=======================================================
Here, it is very clear that "$1" is eaten.

Any suggestions?


More information about the samba mailing list