[Samba] smbfs / cifs mount error - "password too long"

Kok-Yan Lo klo_2k at hotmail.com
Sat Apr 26 08:43:22 GMT 2008

Hi all, when trying to mount a windows file share using the commands below,
mount exits immediately with message "password too long" before even
attempting the mount:

mount -t smbfs -o username="a user",password="12345678901234567"
"//server/share" "/mnt/target"
mount -t cifs -o user="a user",password="12345678901234567",sec=ntlmv2
"//server/share" "/mnt/target"

But the commands below works (with a 16 characters password):
mount -t smbfs -o username="a user",password="1234567890123456"
"//server/share" "/mnt/target"
mount -t cifs -o user="a user",password="1234567890123456",sec=ntlmv2
"//server/share" "/mnt/target"

It also works if I omit the password option and type it in when prompted
(though this is not a good option as I do multiple mounts in a script).

Is it something I have done wrong or is this a problem with the new version?

This problem started after I upgraded to Xubuntu 8.04 which uses smbfs
3.0.28a, however, it was fine in Xubuntu 7.10 (3.0.26a? - can't remember the
exact version...)


---------------- End of message ----------------

More information about the samba mailing list