[Samba] session setup failed: ERRHRD

Staffan Emrén staffan.emren at sau.se
Wed Sep 14 15:19:06 GMT 2005


Hi all,

Here is the situation:

I have a W2k AD server, authenticating the users. The main file areas is
on another server running Fedora Core 2 and samba 3.0.14a, I have a
bunch of win2k and winxp workstations, that works fine. Now I am
experimenting with a linux workstation, but I can't get it to connect
the shares from the samba server. There are some shares on the W2k
server as well, and I can connect to them without problems. The
workstation is running Fedora Core 4 with the stock smb client tools
included in the distro.

Here is the output from smbclient when run with debug level 10:

Command (for your information):
sudo smbmount //njord/Gemensamt gemensamt -o
user=uname,workgroup=sau,uid=uname,gid=users,debug=10

passthrough options 'user=uname'
mount.smbfs started (version 3.0.14a-2)
added interface ip=192.168.1.5 bcast=192.168.1.255 nmask=255.255.255.0
internal_resolve_name: looking up njord#20
Opening cache file at /var/cache/samba/gencache.tdb
Returning valid cache entry: key = NBT/NJORD#20, value = 192.168.1.8:0,
timeout = Wed Sep 14 17:21:08 2005

name njord#20 found.
Connecting to 192.168.1.8 at port 445
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 16384
socket option SO_RCVBUF = 16384
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
16054: session request ok
write_socket(4,183)
write_socket(4,183) wrote 183
got smb length of 85
size=85
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=16054
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]=    7 (0x7)
smb_vwv[ 1]=12803 (0x3203)
smb_vwv[ 2]=  256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]=   65 (0x41)
smb_vwv[ 5]=    0 (0x0)
smb_vwv[ 6]=  256 (0x100)
smb_vwv[ 7]=17408 (0x4400)
smb_vwv[ 8]=   85 (0x55)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=32995 (0x80E3)
smb_vwv[11]=    0 (0x0)
smb_vwv[12]=13587 (0x3513)
smb_vwv[13]=16000 (0x3E80)
smb_vwv[14]=50617 (0xC5B9)
smb_vwv[15]=34817 (0x8801)
smb_vwv[16]= 2303 (0x8FF)
smb_bcc=16
[000] F2 9C DB 02 E4 0A 80 4F  53 00 41 00 55 00 00 00  .......O
S.A.U...
size=85
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=16054
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]=    7 (0x7)
smb_vwv[ 1]=12803 (0x3203)
smb_vwv[ 2]=  256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]=   65 (0x41)
smb_vwv[ 5]=    0 (0x0)
smb_vwv[ 6]=  256 (0x100)
smb_vwv[ 7]=17408 (0x4400)
smb_vwv[ 8]=   85 (0x55)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=32995 (0x80E3)
smb_vwv[11]=    0 (0x0)
smb_vwv[12]=13587 (0x3513)
smb_vwv[13]=16000 (0x3E80)
smb_vwv[14]=50617 (0xC5B9)
smb_vwv[15]=34817 (0x8801)
smb_vwv[16]= 2303 (0x8FF)
smb_bcc=16
[000] F2 9C DB 02 E4 0A 80 4F  53 00 41 00 55 00 00 00  .......O
S.A.U...
Serverzone is -7200
Password:
write_socket(4,133)
write_socket(4,133) wrote 133
got smb length of 35
size=35
smb_com=0x73
smb_rcls=3
smb_reh=0
smb_err=31
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=16054
smb_uid=0
smb_mid=2
smt_wct=0
smb_bcc=0
16054: session setup failed: ERRHRD - ERRgeneral (General failure.)
SMB connection failed

If anyone knows about this error, and how to resolve it, I will be most
grateful. I have googled on the error message, and found a german page
with a solution (add the workgroup= option), but that didn't work out
for me.

Best regards,

Staffan Emren
Societas Archaeologica Upsaliensis
http://www.sau.se





More information about the samba mailing list