[Samba] mount.cifs - trouble authenticating to a windows share

erik.chakravarty at accenture.com erik.chakravarty at accenture.com
Wed Mar 17 13:45:24 GMT 2004


Hi there
 
Firstly, you may want to check out this thread on Experts Exchange:
http://www.experts-exchange.com/Operating_Systems/Linux/Q_20815085.html
 
essentially this is my problem - I can connect to and browse a windows
file share with smbclient, but when i try to mount it with mount.cifs I
get errors. Note that this only happens when I have to authenticate to a
domain controller - I can use mount.smbfs to connect to a fileshare
using local windows authentication.
 
It's as if my username and password is incorrect
(NT_STATUS_LOGON_FAILURE) - but I have proved that I can authenticate
using smbclient - so the problem must be in the mounting process with
mount.cifs.
 
(see below - verbose output from kernel log (i have removed details like
username/password/server address):
 
viper:/var/log/samba# mount -t cifs -o
username="<DOMAIN\user.name>",uid=root,gid=root,rw //<server>/<share>/
/mnt      mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
viper:/var/log/samba# Mar 17 13:32:03 viper kernel:  fs/cifs/cifsfs.c:
Devname: //<server>/<share>/ flags: 64 
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: CIFS VFS: in
cifs_mount as Xid: 22 with uid: 0
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: Entering cifs_mount.
Xid: 22 with: unc=//<server>/<share>/
\,ip=10.128.64.133,pass=<password>,ver=1,rw,username=<DOMAIN\user.name>,
uid=0,gid=0
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: Username:
<DOMAIN\user.name> 
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: UNC:  <file://\\> //
">\\<server>/<share>/ 
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: Socket created
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: Existing smb sess not
found 
Mar 17 13:32:03 viper kernel:  fs/cifs/transport.c: For smb_command 114
Mar 17 13:32:03 viper kernel:  fs/cifs/transport.c: Sending smb of
length 47 
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: Demultiplex PID: 986
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: Peek length rcvd: 36
with smb length: 111
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c:  Mid 0x33 matched -
waking up 
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: Security Mode: 0x3
Capabilities: 0xf3fd Time Zone: 0
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: In sesssetup 
Mar 17 13:32:03 viper kernel:  fs/cifs/transport.c: For smb_command 115
Mar 17 13:32:03 viper kernel:  fs/cifs/transport.c: Sending smb of
length 230 
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: Peek length rcvd: 36
with smb length: 39
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c:  Mid 0x34 matched -
waking up 
Mar 17 13:32:03 viper kernel: Status code returned 0xc000006d
NT_STATUS_LOGON_FAILURE
Mar 17 13:32:03 viper kernel:  fs/cifs/netmisc.c:  !!Mapping smb error
code 5 to POSIX err -13 !!
Mar 17 13:32:03 viper kernel:  CIFS VFS: Send error in SessSetup = -13
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: About to exit from
demultiplex thread
Mar 17 13:32:03 viper kernel:  fs/cifs/connect.c: CIFS VFS: leaving
cifs_mount (xid = 22) rc = -13
Mar 17 13:32:03 viper kernel:  CIFS VFS: cifs_mount failed w/return code
= -13
 
Many thanks for your help.
 
Erik Chakravarty
London UK


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.


More information about the samba mailing list