Mounting an smbfs filesystem from /etc/fstab, if you use the user=wibble,passwd=hatstand options, the /sbin/mount.smb script gets the smbmount command line wrong, putting the -U wibble before the hatstand. Patch is: --- /sbin/mount.smb.orig Thu Jun 3 11:56:23 1999 +++ /sbin/mount.smb Thu Jun 3 11:56:40 1999 @@ -39,7 +39,7 @@ done if [ -n "$PASSWD" ]; then - exec smbmount "$1" $USER $PASSWD -c "$COMMAND" + exec smbmount "$1" $PASSWD $USER -c "$COMMAND" else exec smbmount "$1" -N $USER -c "$COMMAND" fi
fixed in latest samba release (2.0.4b-4, or so)
*** Bug 4973 has been marked as a duplicate of this bug. *** /sbin/mount.smb places the password in the wrong place causing the smbmount to fail. Replace: exec smbmount "$1" $USER $PASSWORD -c "$COMMAND" with exec smbmount "$1" $PASSWD $USER -c "$COMMAND" thanks, john