[Samba] Question about mount.cifs and smbclient

Marton Neher marton.neher at nsn.com
Thu Feb 5 14:21:14 GMT 2009


I have a problem for a few weeks, and can't figure out what could be the
The client computer runs RHEL 5.2 (arch: x64_64); the smb server is
unknown for us.
I'm sorry, that I can't provide any info (usernames, servernames, IPs,
etc), they are masked to look like variables. But they are correct as
far as i am concerned.

When I try to mount it with mount.cifs (.smbfs doesn't exist on RHEL) I
get the following error:

# mount /$SERVER/vobstg/
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

After reading debug messages I found:

# dmesg
 fs/cifs/cifsfs.c: Devname: //$SERVER/vobstg flags: 64
 fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 8691570 with uid: 0
 fs/cifs/connect.c: Domain name set
 fs/cifs/connect.c: Username: $USER
 fs/cifs/connect.c: UNC: \\$SERVER\vobstg ip:
 fs/cifs/connect.c: Socket created
 fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x7fffffffffffffff
 fs/cifs/connect.c: Demultiplex PID: 30898
 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 of length 78
 fs/cifs/connect.c: rfc1002 length 0x65
 fs/cifs/cifssmb.c: Dialect: 2
 fs/cifs/cifssmb.c: negprot rc 0
 fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0xd3fd TimeAdjust:
 fs/cifs/sess.c: sess setup type 2
 fs/cifs/transport.c: For smb_command 115
 fs/cifs/transport.c: Sending smb:  total_len 274
 fs/cifs/connect.c: rfc1002 length 0x27
*Status code returned 0xc0000070 NT_STATUS_INVALID_WORKSTATION*
 fs/cifs/netmisc.c: Mapping smb error code 2240 to POSIX err -13
 fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
 fs/cifs/sess.c: ssetup rc from sendrecv2 is -13
 fs/cifs/sess.c: ssetup freeing small buf ffff81028f7979c0
 CIFS VFS: Send error in SessSetup = -13
 fs/cifs/connect.c: cifsd thread killed
 fs/cifs/connect.c: No session or bad tcon
 fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 8691570) rc = -13
 CIFS VFS: cifs_mount failed w/return code = -13

The entry in fstab is the following:

//$SERVER.FQDN/vobstg    /$SERVER/vobstg    cifs   
0 0

It gives me NT_STATUS_INVALID_WORKSTATION error. The user has a field in
ActiveDirectory: `userWorkstations: $NETBIOSNAME1,$NETBIOSNAME2'. The
RHEL5.3 machine is joined to the doimain with `net ads join'. The
machine's netbiosname is $NETBIOSNAME2.

The interesting thing is that smbclient can connect to the host:

# smbclient -W $DOMAIN -U $USER \\\\$SERVER\\vobstg $PASSWORD
Domain=[$DOMAIN] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
smb: \> ls
  mvfs.zip                            A   129564  Wed Nov 10 16:38:35 2004
  quickie.iso                         A 18231296  Tue Mar  8 13:28:59 2005
  mvfs.o                              A   361193  Thu Nov  4 12:09:00 2004

I have tried smbclient with an another user (which doesn't have the
$NETBIOSNAME2 [the computer's name] in UserWorkstation field in

# smbclient -W NSN-INTRA -U ntmsci \\\\bulinap01\\vobstg NSNintra45\&\&

This seems to be correct.

My question is that why can't i cifsmount the share while i can access
it through smbclient?
What is the difference?
What can I do now?

Hoping that you can help me (our IT service desk won't),
Best Regards:
Marton Neher

More information about the samba mailing list