Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2014 10:42:37 +0100
From:      Johan Hendriks <joh.hendriks@gmail.com>
To:        FreeBSD <freebsd-ports@freebsd.org>
Subject:   samba-4.1.6  FreeBSD 10 cannot read from share.
Message-ID:  <5332A10D.8060108@gmail.com>

next in thread | raw e-mail | index | archive | help
Hello all.

I am using samba 3.x.x for a long time to share files across the network 
as a domain member server.
All is working like it should. Lately i tried the samba 41 port and 
package to do the same job.
However I am not able to get it working.

Everything seems to work, i can browse the share, i can write to the 
share and i can delete files from the share. But as soon as I want to 
read from the share windows explorer hangs. wbinfo -u works, id <user> 
works. I have rebuild samba41, i installed a new FreeBSD 10 machine and 
installed samba41, I also tried the package of samba but the issue 
remains. Also i tried to trim down the smb4.conf file.

The error i get is this (translated from dutch)
There is a problem accessing the file I:\data\filetocopy
Make sure your computer is connected to the network and try again.

In my logs i do not see a lot of strange things , i do see this....

Mar 25 15:47:50 freetest smbd[80071]: [2014/03/25 15:47:50.679688, 0, 
pid=80071, effective(0, 10004), real(0, 0)] 
../source3/smbd/reply.c:3079(fake_sendfile)
Mar 25 15:47:50 freetest smbd[80071]: [2014/03/25 15:47:50.680200, 0, 
pid=80071, effective(0, 10004), real(0, 0)] 
../source3/smbd/smb2_read.c:235(smb2_sendfile_send_data)
Mar 25 15:47:50 freetest smbd[80071]:   smb2_sendfile_send_data: 
fake_sendfile failed for file ubcd526.iso (Socket is not connected). 
Terminating


Could someone point me in the right direction, i have no idea how to 
overcome this.
If i revert back to 3.6.xx all is fine.

regards
Johan

Here is my smb4.conf file

[global]
workgroup = TESTDOMAIN
netbios name = freetest
realm = TESTDOMAIN.LOCAL
server string = FreeTest
security = ADS

ea support =  yes
inherit acls = yes
csc policy = disable
store dos attributes = yes
dos filemode = no
map read only = no
map untrusted to domain = yes
printcap name = /etc/printcap
disable spoolss = yes
nsupdate command = /usr/local/bin/samba-nsupdate -g

template shell = /usr/local/bin/bash
template homedir = /usr/home/%U
winbind use default domain = yes
winbind cache time = 3600
winbind nested groups = yes
winbind separator = |
winbind offline logon = yes
winbind enum users = yes
winbind enum groups = yes
winbind refresh tickets = yes
winbind nss info = rfc2307
#allow trusted domains = yes

idmap config * : backend = tdb
idmap config * : range = 10000-1200000
idmap config TESTDOMAIN:backend = ad
idmap config TESTDOMAIN:schema_mode = rfc2307
idmap config TESTDOMAIN:range = 500 - 1000000

socket options = TCP_NODELAY SO_RCVBUF=131072 SO_SNDBUF=131072
#max protocol = SMB2
server max protocol = SMB2
getwd cache = yes
strict locking = no
  write cache size = 2097152
min receivefile size=16384
use sendfile = yes
map acl inherit = yes
admin users = @TESTDOMAIN|administator, administrator, "@domain admins", 
"@TESTDOMAIN|domain admins"
write list = "@TESTDOMAIN|domain users" "@domain users"
obey pam restrictions = yes

#local master = no
#domain logons = no
#domain master = no
#preferred master = no
#dns proxy = no
username map = /usr/local/etc/samba/usermap

# LOGGING
# no log file size limitation
max log size = 0
# specific log file name
log file = /var/log/samba/log.%I
# set the debug level
log level = 2
# add the pid to the log
debug pid = yes
# add the uid to the log
debug uid = yes
# add the debug class to the log
debug class = yes
# add microsecond resolution to timestamp
debug hires timestamp = yes

#============================ Share Definitions 
==============================

[data]
   comment = test zfs snapshots
   path = /mnt
   browseable = yes
   vfs objects = zfsacl streams_xattr aio_pthread
   veto files = /.snap/.windows/.zfs/
   inherit owner = yes
   inherit permissions = yes
   inherit acls = yes
   nfs4:mode = special
   nfs4:acedup = merge
   nfs4:chown = yes
   zfsacl: acesort = dontcare

My /etc/krb5.conf file looks llike this

[appdefaults]
         pam = {
                 forwardable = true
                 krb4_convert = false
                 debug = false
                 ticket_lifetime = 36000
                 renew_lifetime = 36000
     }

[libdefaults]
         dns_lookup_realm = true
         dns_lookup_kdc = true
         ticket_lifetime = 24h
         clockskew = 300
         forwardable = yes
         default_realm = TESTDOMAIN.LOCAL

[logging]
         default = SYSLOG:INFO:LOCAL7

/etc/nsswitch file looks like this

#
# nsswitch.conf(5) - name service switch configuration file
# $FreeBSD: release/10.0.0/etc/nsswitch.conf 224765 2011-08-10 20:52:02Z 
dougb $
#
group: files winbind
group_compat: nis
hosts: files dns
networks: files
passwd: files winbind
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files

A testparm gives me the following output

root@freetest:/var/log/samba4 # testparm
Load smb config files from /usr/local/etc/smb4.conf
Processing section "[data]"
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions

[global]
         workgroup = SCHAVEMAKER2
         realm = SCHAVEMAKER2.LOCAL
         server string = FreeTest
         security = ADS
         obey pam restrictions = Yes
         username map = /usr/local/etc/samba/usermap
         map untrusted to domain = Yes
         log file = /var/log/samba4/log.%I
         max log size = 0
         debug pid = Yes
         debug uid = Yes
         debug class = Yes
         server max protocol = SMB2
         min receivefile size = 16384
         socket options = TCP_NODELAY SO_RCVBUF=131072 SO_SNDBUF=131072
         printcap name = /etc/printcap
         disable spoolss = Yes
         template homedir = /usr/home/%U
         template shell = /usr/local/bin/bash
         winbind separator = |
         winbind cache time = 3600
         winbind enum users = Yes
         winbind enum groups = Yes
         winbind use default domain = Yes
         winbind nss info = rfc2307
         winbind refresh tickets = Yes
         winbind offline logon = Yes
         nsupdate command = /usr/local/bin/samba-nsupdate -g
         idmap config POLAND:range = 1000001 - 1200000
         idmap config POLAND:schema_mode = rfc2307
         idmap config POLAND:backend = ad
         idmap config SCHAVEMAKER2:range = 500 - 1000000
         idmap config SCHAVEMAKER2:schema_mode = rfc2307
         idmap config SCHAVEMAKER2:backend = ad
         idmap config * : range = 10000-1200000
         idmap config * : backend = tdb
         admin users = @SCHAVEMAKER2|administator, administrator, 
"@domain admins", "@SCHAVEMAKER2|domain admins"
         write list = "@SCHAVEMAKER2|domain users", "@domain users"
         inherit acls = Yes
         ea support = Yes
         map acl inherit = Yes
         use sendfile = Yes
         write cache size = 2097152
         map readonly = no
         store dos attributes = Yes
         csc policy = disable
         strict locking = No

[data]
         comment = test zfs snapshots
         path = /mnt
         inherit permissions = Yes
         inherit owner = Yes
         veto files = /.snap/.windows/.zfs/
         vfs objects = shadow_copy2, zfsacl, streams_xattr, aio_pthread
         zfsacl: acesort = dontcare
         nfs4:chown = yes
         nfs4:acedup = merge
         nfs4:mode = special







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5332A10D.8060108>