[Samba] Question about mount.cifs and smbclient

Shirish Pargaonkar shirishpargaonkar at gmail.com
Thu Feb 5 17:26:37 GMT 2009


On Thu, Feb 5, 2009 at 8:21 AM, Marton Neher <marton.neher at nsn.com> wrote:
> Hi!
>
> I have a problem for a few weeks, and can't figure out what could be the
> problem.
> 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: 10.20.30.40
>  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:
> -3600
>  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
> rw,netbiosname=$NETBIOSNAME,credentials=/etc/samba/$USER.credentials,domain=$DOMAIN,uid=$LOCALUSER,gid=$LOCALGID,file_mode=0660,dir_mode=0770,auto
> 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
> ActiveDirectory):
>
> # smbclient -W NSN-INTRA -U ntmsci \\\\bulinap01\\vobstg NSNintra45\&\&
> session setup failed: NT_STATUS_INVALID_WORKSTATION
>
> 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
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>

The SMB command session setup andx (115, 0x73) is failing.
What is the output of commands like ' net ads testjoin' and 'net ads
info' on this RHEL 5.3 machine?
Is your Active Directory Server a Windows machine or a Linux machine
runing Samba server?
If it is a Windows server, do/can you see the netbiosname name of this
RHEL 5.3 machine in Active directory i.e. under
 Administrative Tools, Active Directory Users and Computers,  and
under Computers under this domain name?

Regards,

Shirish


More information about the samba mailing list