You are not logged in.
I'm trying to mount a samba share at my university with mount.cifs:
mount.cifs //samba-fs1/nfspl /mnt/nfspl -o username=XXX,domain=XXX
However, it simply returns
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
It works fine with smbclient. I enabled cifsFYI output, and mount.cifs gives this in the system log:
fs/cifs/cifsfs.c: Devname: //samba-fs1/nfspl flags: 64
fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 3 with uid: 0
fs/cifs/connect.c: Domain name set
fs/cifs/connect.c: Username: XXX
fs/cifs/connect.c: UNC: \\samba-fs1\nfspl ip: XX.XX.XX.XX
fs/cifs/connect.c: Socket created
fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x834
fs/cifs/transport.c: Sending smb: total_len 72
fs/cifs/connect.c: Existing smb sess not found
fs/cifs/cifssmb.c: secFlags 0x7
fs/cifs/transport.c: For smb_command 114
fs/cifs/transport.c: Sending smb: total_len 82
fs/cifs/connect.c: Demultiplex PID: 31659
fs/cifs/connect.c: rfc1002 length 0x82000004
fs/cifs/connect.c: Good RFC 1002 session rsp
fs/cifs/connect.c: rfc1002 length 0x51
fs/cifs/cifssmb.c: Dialect: 2
fs/cifs/cifssmb.c: share mode security
CIFS VFS: Server requests plain text password but client support disabled
fs/cifs/cifssmb.c: negprot rc 0
fs/cifs/connect.c: Security Mode: 0x0 Capabilities: 0x3b9 TimeAdjust: -7200
fs/cifs/sess.c: sess setup type 2
fs/cifs/transport.c: For smb_command 115
fs/cifs/transport.c: Sending smb: total_len 179
fs/cifs/connect.c: rfc1002 length 0x47
fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
fs/cifs/sess.c: ssetup rc from sendrecv2 is 0
fs/cifs/sess.c: Guest login
fs/cifs/sess.c: UID = 0
fs/cifs/sess.c: decode sessetup ascii. bleft 26
fs/cifs/sess.c: ascii: bytes left 8
fs/cifs/sess.c: ssetup freeing small buf f140f1c0
fs/cifs/connect.c: CIFS Session Established successfully
fs/cifs/connect.c: file mode: 0x1ed dir mode: 0x1ed
fs/cifs/transport.c: For smb_command 117
fs/cifs/transport.c: Sending smb: total_len 95
fs/cifs/connect.c: rfc1002 length 0x27
fs/cifs/netmisc.c: Mapping smb error code 2 to POSIX err -13
fs/cifs/connect.c: CIFS Tcon rc = -13
fs/cifs/connect.c: CIFS VFS: in cifs_put_tcon as Xid: 4 with uid: 0
fs/cifs/cifssmb.c: In tree disconnect
fs/cifs/transport.c: For smb_command 113
fs/cifs/transport.c: Sending smb: total_len 39
fs/cifs/connect.c: rfc1002 length 0x27
fs/cifs/netmisc.c: Mapping smb error code 5 to POSIX err -6
fs/cifs/cifssmb.c: Tree disconnect failed -6
fs/cifs/connect.c: CIFS VFS: in cifs_put_smb_ses as Xid: 5 with uid: 0
fs/cifs/cifssmb.c: In SMBLogoff for session disconnect
fs/cifs/transport.c: For smb_command 116
fs/cifs/transport.c: Sending smb: total_len 43
fs/cifs/connect.c: rfc1002 length 0x2b
fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 3) rc = -13
CIFS VFS: cifs_mount failed w/return code = -13
Since it complains that the server is asking for plaintext authentication, I tried enabling that with 'echo 0x30030 >/proc/fs/cifs/SecurityFlags' (as per http://www.kernel.org/doc/readme/fs-cifs-README). Still the same error, this time with syslog
fs/cifs/cifs_debug.c: sec flags 0x30030
fs/cifs/cifs_debug.c: packet signing disabled
fs/cifs/cifsfs.c: Devname: //samba-fs1/nfspl flags: 64
fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 14 with uid: 0
fs/cifs/connect.c: Domain name set
fs/cifs/connect.c: Username: XXX
fs/cifs/connect.c: UNC: \\samba-fs1\nfspl ip: XX.XX.XX.XX
fs/cifs/connect.c: Socket created
fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x834
fs/cifs/transport.c: Sending smb: total_len 72
fs/cifs/connect.c: Existing smb sess not found
fs/cifs/cifssmb.c: secFlags 0x30030
fs/cifs/transport.c: For smb_command 114
fs/cifs/transport.c: Sending smb: total_len 82
fs/cifs/connect.c: Demultiplex PID: 32575
fs/cifs/connect.c: rfc1002 length 0x82000004
fs/cifs/connect.c: Good RFC 1002 session rsp
fs/cifs/connect.c: rfc1002 length 0x51
fs/cifs/cifssmb.c: Dialect: 2
fs/cifs/cifssmb.c: share mode security
fs/cifs/cifssmb.c: Signing disabled
fs/cifs/cifssmb.c: negprot rc 0
fs/cifs/connect.c: Security Mode: 0x0 Capabilities: 0x3b9 TimeAdjust: -7200
fs/cifs/sess.c: sess setup type 1
fs/cifs/sess.c: Negotiating LANMAN setting up strings
fs/cifs/transport.c: For smb_command 115
fs/cifs/transport.c: Sending smb: total_len 149
fs/cifs/connect.c: rfc1002 length 0x47
fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
fs/cifs/sess.c: ssetup rc from sendrecv2 is 0
fs/cifs/sess.c: UID = 0
fs/cifs/sess.c: decode sessetup ascii. bleft 26
fs/cifs/sess.c: ascii: bytes left 8
fs/cifs/sess.c: ssetup freeing small buf f14d21c0
fs/cifs/connect.c: CIFS Session Established successfully
fs/cifs/connect.c: file mode: 0x1ed dir mode: 0x1ed
fs/cifs/transport.c: For smb_command 117
fs/cifs/transport.c: Sending smb: total_len 95
fs/cifs/connect.c: rfc1002 length 0x27
fs/cifs/netmisc.c: Mapping smb error code 2 to POSIX err -13
fs/cifs/connect.c: CIFS Tcon rc = -13
fs/cifs/connect.c: CIFS VFS: in cifs_put_tcon as Xid: 15 with uid: 0
fs/cifs/cifssmb.c: In tree disconnect
fs/cifs/transport.c: For smb_command 113
fs/cifs/transport.c: Sending smb: total_len 39
fs/cifs/connect.c: rfc1002 length 0x27
fs/cifs/netmisc.c: Mapping smb error code 5 to POSIX err -6
fs/cifs/cifssmb.c: Tree disconnect failed -6
fs/cifs/connect.c: CIFS VFS: in cifs_put_smb_ses as Xid: 16 with uid: 0
fs/cifs/cifssmb.c: In SMBLogoff for session disconnect
fs/cifs/transport.c: For smb_command 116
fs/cifs/transport.c: Sending smb: total_len 43
fs/cifs/connect.c: rfc1002 length 0x2b
fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 14) rc = -13
CIFS VFS: cifs_mount failed w/return code = -13
Any idea what could be wrong?
Offline
it could be a problem with the mount.cifs program, do a sysupgrade, if it still doest work, try using the option nounix or the sec options for NTLM/Kerberos security, check mount.cifs man pages for exact syntax
Offline
Thanks, but I am using the newest version (and I've tried before too,so if it's a problem with mount.cifs, it's old). I did try the different sec options -- some of them return the same error, some "(39): Function not implemented" and some "(95): Operation not permitted". And according to the syslog messages, the server requests plaintext auth.
Offline
the security flag did work as there is no error ,essage about plaintext auth in the log, try using -sec=none, or you could try using smbfs but its known to be broken and isnt actively supported, if nothing works and the server cant work without plaintext auth, then you can use a VM with windows on it to get the data from the share.
Offline
Doesn't work with sec=none either.
I guess it could work with smbfs, but as you said, smbfs is broken, and not part of the samba packages on Arch. Anyway, there's no problem when using smbclient or the smb kioslave (so I won't have to resort to Windows ) -- it's just that mounting it directly with mount.cifs is rather more convenient, and it _ought_ to work, dammit!
I guess I'll ask upstream, if nobody has any other ideas?
Last edited by Ursa Major (2010-07-05 18:37:25)
Offline
Hi!
I got the exact same problem.
The only solution I found is to keep using kernel 2.6.
pacman -S kernel26-lts{,-headers}
I unfortunately haven't found a solution yet for the kernel 3.0-ARCH. If any of you guys found a solution, I would be pleased to read it.
Last edited by scholi (2011-09-26 14:52:16)
Offline