Hello all, I am at a loss with ZFS SMB sharing. I created a zfs file system d0/pvr to be used, via SMB, by the digital video recorder. (This already works fine with Samba on a FreeBSD server, which I want to replace.) The full properties of the file system can be seen below at the bottom of the message.
The file system is shared with "r...@10.0.0.0/8", such that sharemgr show it like this: # sharemgr show -vp zfs/d0/pvr d0/pvr nfs=() smb=(rw="@10.0.0.0/8") nfs:sys=(rw="@10.0.0.0/26:@10.0.1.0/26") d0_pvr=/d0/pvr When I try to access it from a client in the 10.0.0.0/8 network, I only get this: client$ smbclient //mellum4/d0_pvr HansWitt -U pvr added interface ip=10.0.0.19 bcast=10.0.0.255 nmask=255.255.255.0 added interface ip=10.0.2.28 bcast=10.0.2.255 nmask=255.255.255.0 Domain=[W21] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] tree connect failed: NT_STATUS_ACCESS_DENIED Listing the server from the client looks like this: client$ smbclient -L mellum added interface ip=10.0.0.19 bcast=10.0.0.255 nmask=255.255.255.0 added interface ip=10.0.2.28 bcast=10.0.2.255 nmask=255.255.255.0 Password: Domain=[W21] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] Sharename Type Comment --------- ---- ------- d0_pvr Disk ipc$ IPC Remote IPC Server Comment --------- ------- Workgroup Master --------- ------- When I look at the output with full debugging (see below), it looks like the password (which is triple-checked to be correct) is not even transmitted. The default workgroup (W21) is, though. But setting the workgroup on the command line to empty or WORKGROUP does not help, the transmitted workgroup name always seems to be W21. What am I missing? Do I have to set the workgroup name on the server? I cannot find something to do that; OTOH smbadm already says: # smbadm list [*] [W21] What is wrong here? How can I make it work? Any help is appreciated. Regards, Juergen. ------------------------------------------------------------------ Full debug run of smbclient: Serverzone is -7200 Adding chars 0x0 0x0 (l->u = False) (u->l = False) Adding chars 0x21 0x0 (l->u = False) (u->l = False) Adding chars 0x23 0x0 (l->u = False) (u->l = False) Adding chars 0x24 0x0 (l->u = False) (u->l = False) Adding chars 0x25 0x0 (l->u = False) (u->l = False) Adding chars 0x26 0x0 (l->u = False) (u->l = False) Adding chars 0x27 0x0 (l->u = False) (u->l = False) Adding chars 0x28 0x0 (l->u = False) (u->l = False) Adding chars 0x29 0x0 (l->u = False) (u->l = False) Adding chars 0x2d 0x0 (l->u = False) (u->l = False) Adding chars 0x2e 0x0 (l->u = False) (u->l = False) Adding chars 0x30 0x0 (l->u = False) (u->l = False) Adding chars 0x31 0x0 (l->u = False) (u->l = False) Adding chars 0x32 0x0 (l->u = False) (u->l = False) Adding chars 0x33 0x0 (l->u = False) (u->l = False) Adding chars 0x34 0x0 (l->u = False) (u->l = False) Adding chars 0x35 0x0 (l->u = False) (u->l = False) Adding chars 0x36 0x0 (l->u = False) (u->l = False) Adding chars 0x37 0x0 (l->u = False) (u->l = False) Adding chars 0x38 0x0 (l->u = False) (u->l = False) Adding chars 0x39 0x0 (l->u = False) (u->l = False) Adding chars 0x40 0x0 (l->u = False) (u->l = False) Adding chars 0x41 0x0 (l->u = False) (u->l = False) Adding chars 0x42 0x0 (l->u = False) (u->l = False) Adding chars 0x43 0x0 (l->u = False) (u->l = False) Adding chars 0x44 0x0 (l->u = False) (u->l = False) Adding chars 0x45 0x0 (l->u = False) (u->l = False) Adding chars 0x46 0x0 (l->u = False) (u->l = False) Adding chars 0x47 0x0 (l->u = False) (u->l = False) Adding chars 0x48 0x0 (l->u = False) (u->l = False) Adding chars 0x49 0x0 (l->u = False) (u->l = False) Adding chars 0x4a 0x0 (l->u = False) (u->l = False) Adding chars 0x4b 0x0 (l->u = False) (u->l = False) Adding chars 0x4c 0x0 (l->u = False) (u->l = False) Adding chars 0x4d 0x0 (l->u = False) (u->l = False) Adding chars 0x4e 0x0 (l->u = False) (u->l = False) Adding chars 0x4f 0x0 (l->u = False) (u->l = False) Adding chars 0x50 0x0 (l->u = False) (u->l = False) Adding chars 0x51 0x0 (l->u = False) (u->l = False) Adding chars 0x52 0x0 (l->u = False) (u->l = False) Adding chars 0x53 0x0 (l->u = False) (u->l = False) Adding chars 0x54 0x0 (l->u = False) (u->l = False) Adding chars 0x55 0x0 (l->u = False) (u->l = False) Adding chars 0x56 0x0 (l->u = False) (u->l = False) Adding chars 0x57 0x0 (l->u = False) (u->l = False) Adding chars 0x58 0x0 (l->u = False) (u->l = False) Adding chars 0x59 0x0 (l->u = False) (u->l = False) Adding chars 0x5a 0x0 (l->u = False) (u->l = False) Adding chars 0x5e 0x0 (l->u = False) (u->l = False) Adding chars 0x5f 0x0 (l->u = False) (u->l = False) Adding chars 0x60 0x0 (l->u = False) (u->l = False) Adding chars 0x61 0x0 (l->u = False) (u->l = False) Adding chars 0x62 0x0 (l->u = False) (u->l = False) Adding chars 0x63 0x0 (l->u = False) (u->l = False) Adding chars 0x64 0x0 (l->u = False) (u->l = False) Adding chars 0x65 0x0 (l->u = False) (u->l = False) Adding chars 0x66 0x0 (l->u = False) (u->l = False) Adding chars 0x67 0x0 (l->u = False) (u->l = False) Adding chars 0x68 0x0 (l->u = False) (u->l = False) Adding chars 0x69 0x0 (l->u = False) (u->l = False) Adding chars 0x6a 0x0 (l->u = False) (u->l = False) Adding chars 0x6b 0x0 (l->u = False) (u->l = False) Adding chars 0x6c 0x0 (l->u = False) (u->l = False) Adding chars 0x6d 0x0 (l->u = False) (u->l = False) Adding chars 0x6e 0x0 (l->u = False) (u->l = False) Adding chars 0x6f 0x0 (l->u = False) (u->l = False) Adding chars 0x70 0x0 (l->u = False) (u->l = False) Adding chars 0x71 0x0 (l->u = False) (u->l = False) Adding chars 0x72 0x0 (l->u = False) (u->l = False) Adding chars 0x73 0x0 (l->u = False) (u->l = False) Adding chars 0x74 0x0 (l->u = False) (u->l = False) Adding chars 0x75 0x0 (l->u = False) (u->l = False) Adding chars 0x76 0x0 (l->u = False) (u->l = False) Adding chars 0x77 0x0 (l->u = False) (u->l = False) Adding chars 0x78 0x0 (l->u = False) (u->l = False) Adding chars 0x79 0x0 (l->u = False) (u->l = False) Adding chars 0x7a 0x0 (l->u = False) (u->l = False) Adding chars 0x7b 0x0 (l->u = False) (u->l = False) Adding chars 0x7d 0x0 (l->u = False) (u->l = False) Adding chars 0x7e 0x0 (l->u = False) (u->l = False) Initialising global parameters params.c:pm_process() - Processing configuration file "/usr/local/etc/smb.conf" Processing section "[global]" doing parameter workgroup = W21 doing parameter netbios name = OLAND handle_netbios_name: set global_myname to: OLAND doing parameter encrypt passwords = Yes doing parameter update encrypted = Yes doing parameter log level = 2 doing parameter log file = /var/log/samba/%m.log doing parameter hosts allow = 10.0.0.0/255.255.0.0 pm_process() returned Yes lp_servicenumber: couldn't find homes set_server_role: ROLE_STANDALONE codepage_initialise: client code page = 850 load_client_codepage: loading codepage 850. Adding chars 0x85 0xb7 (l->u = True) (u->l = True) Adding chars 0xa0 0xb5 (l->u = True) (u->l = True) Adding chars 0x83 0xb6 (l->u = True) (u->l = True) Adding chars 0xc6 0xc7 (l->u = True) (u->l = True) Adding chars 0x84 0x8e (l->u = True) (u->l = True) Adding chars 0x86 0x8f (l->u = True) (u->l = True) Adding chars 0x91 0x92 (l->u = True) (u->l = True) Adding chars 0x87 0x80 (l->u = True) (u->l = True) Adding chars 0x8a 0xd4 (l->u = True) (u->l = True) Adding chars 0x82 0x90 (l->u = True) (u->l = True) Adding chars 0x88 0xd2 (l->u = True) (u->l = True) Adding chars 0x89 0xd3 (l->u = True) (u->l = True) Adding chars 0x8d 0xde (l->u = True) (u->l = True) Adding chars 0xa1 0xd6 (l->u = True) (u->l = True) Adding chars 0x8c 0xd7 (l->u = True) (u->l = True) Adding chars 0x8b 0xd8 (l->u = True) (u->l = True) Adding chars 0xd0 0xd1 (l->u = True) (u->l = True) Adding chars 0xa4 0xa5 (l->u = True) (u->l = True) Adding chars 0x95 0xe3 (l->u = True) (u->l = True) Adding chars 0xa2 0xe0 (l->u = True) (u->l = True) Adding chars 0x93 0xe2 (l->u = True) (u->l = True) Adding chars 0xe4 0xe5 (l->u = True) (u->l = True) Adding chars 0x94 0x99 (l->u = True) (u->l = True) Adding chars 0x9b 0x9d (l->u = True) (u->l = True) Adding chars 0x97 0xeb (l->u = True) (u->l = True) Adding chars 0xa3 0xe9 (l->u = True) (u->l = True) Adding chars 0x96 0xea (l->u = True) (u->l = True) Adding chars 0x81 0x9a (l->u = True) (u->l = True) Adding chars 0xec 0xed (l->u = True) (u->l = True) Adding chars 0xe7 0xe8 (l->u = True) (u->l = True) Adding chars 0x9c 0x0 (l->u = False) (u->l = False) load_dos_unicode_map: 850 load_unicode_map: loading unicode map for codepage 850. load_unix_unicode_map: ISO8859-1 (init_done=0, override=0) load_unicode_map: loading unicode map for codepage ISO8859-1. added interface ip=10.0.0.19 bcast=10.0.0.255 nmask=255.255.255.0 added interface ip=10.0.2.28 bcast=10.0.2.255 nmask=255.255.255.0 Client started (version 2.2.12). resolve_lmhosts: Attempting lmhosts lookup for name mellum4<0x20> startlmhosts: Can't open lmhosts file /usr/local/etc/lmhosts. Error was No such file or directory resolve_hosts: Attempting host lookup for name mellum4<0x20> 1 addresses returned internal_resolve_name: returning 1 addresses: 10.0.0.33 Connecting to 10.0.0.33 at port 139 socket option SO_KEEPALIVE = 0 socket option SO_REUSEADDR = 0 socket option SO_BROADCAST = 0 socket option TCP_NODELAY = 4 socket option IPTOS_LOWDELAY = 0 socket option IPTOS_THROUGHPUT = 0 socket option SO_REUSEPORT = 0 socket option SO_SNDBUF = 33304 socket option SO_RCVBUF = 66608 socket option SO_SNDLOWAT = 2048 socket option SO_RCVLOWAT = 1 socket option SO_SNDTIMEO = 0 socket option SO_RCVTIMEO = 0 write_socket(3,72) write_socket(3,72) wrote 72 Sent session request got smb length of 0 size=0 smb_com=0x0 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=0 smb_flg2=0 smb_tid=0 smb_pid=0 smb_uid=0 smb_mid=0 smt_wct=0 smb_bcc=0 session request ok write_socket(3,168) write_socket(3,168) wrote 168 got smb length of 85 size=85 smb_com=0x72 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=128 smb_flg2=1 smb_tid=0 smb_pid=58736 smb_uid=0 smb_mid=1 smt_wct=17 smb_vwv[0]=7 (0x7) smb_vwv[1]=16387 (0x4003) smb_vwv[2]=260 (0x104) smb_vwv[3]=0 (0x0) smb_vwv[4]=148 (0x94) smb_vwv[5]=65280 (0xFF00) smb_vwv[6]=255 (0xFF) smb_vwv[7]=1024 (0x400) smb_vwv[8]=54745 (0xD5D9) smb_vwv[9]=64772 (0xFD04) smb_vwv[10]=195 (0xC3) smb_vwv[11]=32768 (0x8000) smb_vwv[12]=24281 (0x5ED9) smb_vwv[13]=55541 (0xD8F5) smb_vwv[14]=51919 (0xCACF) smb_vwv[15]=34817 (0x8801) smb_vwv[16]=2303 (0x8FF) smb_bcc=16 [000] F6 88 B6 F4 68 6E 99 2E 57 00 32 00 31 00 00 00 ....hn.. W.2.1... size=85 smb_com=0x72 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=128 smb_flg2=1 smb_tid=0 smb_pid=58736 smb_uid=0 smb_mid=1 smt_wct=17 smb_vwv[0]=7 (0x7) smb_vwv[1]=16387 (0x4003) smb_vwv[2]=260 (0x104) smb_vwv[3]=0 (0x0) smb_vwv[4]=148 (0x94) smb_vwv[5]=65280 (0xFF00) smb_vwv[6]=255 (0xFF) smb_vwv[7]=1024 (0x400) smb_vwv[8]=54745 (0xD5D9) smb_vwv[9]=64772 (0xFD04) smb_vwv[10]=195 (0xC3) smb_vwv[11]=32768 (0x8000) smb_vwv[12]=24281 (0x5ED9) smb_vwv[13]=55541 (0xD8F5) smb_vwv[14]=51919 (0xCACF) smb_vwv[15]=34817 (0x8801) smb_vwv[16]=2303 (0x8FF) smb_bcc=16 [000] F6 88 B6 F4 68 6E 99 2E 57 00 32 00 31 00 00 00 ....hn.. W.2.1... write_socket(3,152) write_socket(3,152) wrote 152 got smb length of 118 size=118 smb_com=0x73 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=128 smb_flg2=32769 smb_tid=0 smb_pid=58736 smb_uid=1 smb_mid=1 smt_wct=3 smb_vwv[0]=255 (0xFF) smb_vwv[1]=65535 (0xFFFF) smb_vwv[2]=1 (0x1) smb_bcc=77 [000] 00 57 00 69 00 6E 00 64 00 6F 00 77 00 73 00 20 .W.i.n.d .o.w.s. [010] 00 4E 00 54 00 20 00 34 00 2E 00 30 00 00 00 4E .N.T. .4 ...0...N [020] 00 54 00 20 00 4C 00 41 00 4E 00 20 00 4D 00 61 .T. .L.A .N. .M.a [030] 00 6E 00 61 00 67 00 65 00 72 00 20 00 34 00 2E .n.a.g.e .r. .4.. [040] 00 30 00 00 00 57 00 32 00 31 00 00 00 .0...W.2 .1... size=118 smb_com=0x73 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=128 smb_flg2=32769 smb_tid=0 smb_pid=58736 smb_uid=1 smb_mid=1 smt_wct=3 smb_vwv[0]=255 (0xFF) smb_vwv[1]=65535 (0xFFFF) smb_vwv[2]=1 (0x1) smb_bcc=77 [000] 00 57 00 69 00 6E 00 64 00 6F 00 77 00 73 00 20 .W.i.n.d .o.w.s. [010] 00 4E 00 54 00 20 00 34 00 2E 00 30 00 00 00 4E .N.T. .4 ...0...N [020] 00 54 00 20 00 4C 00 41 00 4E 00 20 00 4D 00 61 .T. .L.A .N. .M.a [030] 00 6E 00 61 00 67 00 65 00 72 00 20 00 34 00 2E .n.a.g.e .r. .4.. [040] 00 30 00 00 00 57 00 32 00 31 00 00 00 .0...W.2 .1... Domain=[W21] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] session setup ok write_socket(3,88) write_socket(3,88) wrote 88 got smb length of 35 size=35 smb_com=0x75 smb_rcls=34 smb_reh=0 smb_err=49152 smb_flg=128 smb_flg2=49153 smb_tid=0 smb_pid=58736 smb_uid=1 smb_mid=1 smt_wct=0 smb_bcc=0 tree connect failed: NT_STATUS_ACCESS_DENIED Properties of d0/pvr: NAME PROPERTY VALUE SOURCE d0/pvr type filesystem - d0/pvr creation Thu Feb 4 11:14 2010 - d0/pvr used 59.1G - d0/pvr available 1.07T - d0/pvr referenced 59.1G - d0/pvr compressratio 1.00x - d0/pvr mounted yes - d0/pvr quota none default d0/pvr reservation none default d0/pvr recordsize 128K default d0/pvr mountpoint /d0/pvr default d0/pvr sharenfs r...@10.0.0.0/26:@10.0.1.0/26 inherited from d0 d0/pvr checksum on default d0/pvr compression on inherited from d0 d0/pvr atime on default d0/pvr devices on default d0/pvr exec on default d0/pvr setuid on default d0/pvr readonly off default d0/pvr zoned off default d0/pvr snapdir hidden default d0/pvr aclmode groupmask default d0/pvr aclinherit restricted default d0/pvr canmount on default d0/pvr shareiscsi off default d0/pvr xattr on default d0/pvr copies 1 default d0/pvr version 4 - d0/pvr utf8only off - d0/pvr normalization none - d0/pvr casesensitivity sensitive - d0/pvr vscan off default d0/pvr nbmand off default d0/pvr sharesmb r...@10.0.0.0/8 local d0/pvr refquota none default d0/pvr refreservation none default d0/pvr primarycache all default d0/pvr secondarycache all default d0/pvr usedbysnapshots 292K - d0/pvr usedbydataset 59.1G - d0/pvr usedbychildren 0 - d0/pvr usedbyrefreservation 0 - d0/pvr logbias latency default d0/pvr dedup off inherited from d0 d0/pvr mlslabel none default -- Brothers should pull up their pants. You are walking by your mother, your grandmother, your underwear is showing. What's wrong with that? Come on. Some people might not want to see your underwear. I'm one of them. -- President-elect Barack Obama