Bug 3239 - /sbin/mount.smb handles user and passwd options wrongly
/sbin/mount.smb handles user and passwd options wrongly
Status: CLOSED NEXTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: distribution (Show other bugs)
6.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: David Lawrence
:
: 4973 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-06-03 10:50 EDT by tpr
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-06-14 13:32:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description tpr 1999-06-03 10:50:13 EDT
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
Comment 1 Bill Nottingham 1999-06-14 13:32:59 EDT
fixed in latest samba release (2.0.4b-4, or so)
Comment 2 Bill Nottingham 1999-09-08 10:29:59 EDT
*** 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

Note You need to log in before you can comment on or make changes to this bug.