[Pkg-samba-maint] Bug#930540: Bug#930540: samba-vfs-modules: /usr/lib/x86_64-linux-gnu/samba/vfs/nfs4acl_xattr.so No such file or directory

L.P.H. van Belle belle at bazuin.nl
Mon Jun 17 08:04:41 BST 2019


Hai, 

That is correct the modules is not in the debian builds. 
if you want to use the vfs_nfs4acl_xattr module you need to recompile samba.
Or use and other repo which already have this builtin. 

Rebuilding it. 
For the build install : nfs-common 
apt get source samba 
cd samba-... 

Edit debian/rules 
Add in the line at the end --with-shared-modules=
be added : ,vfs_nfs4acl_xattr

And change the debian/changelog and debian/control files 

And rebuild it.
cd ..
apt get source samba -b 


Greetz, 

Louis

 

> -----Oorspronkelijk bericht-----
> Van: Pkg-samba-maint 
> [mailto:pkg-samba-maint-bounces+belle=bazuin.nl at alioth-lists.d
> ebian.net] Namens Gary Richards
> Verzonden: vrijdag 14 juni 2019 22:03
> Aan: Debian Bug Tracking System
> Onderwerp: [Pkg-samba-maint] Bug#930540: samba-vfs-modules: 
> /usr/lib/x86_64-linux-gnu/samba/vfs/nfs4acl_xattr.so No such 
> file or directory
> 
> Package: samba-vfs-modules
> Version: 4.9.5+dfsg-4
> Severity: normal
> 
> Dear Maintainer,
> 
> I have been attempting to build a samba ad dc in a buster 
> container to run on a
> platform where /var/lib/samba will be an NFSv4 mount. When 
> trying to provision
> the domain with samba-tool I receive an error:
> 
> ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed -
> ProvisioningError: Your filesystem or build does not support 
> posix ACLs, which
> s3fs requires.  Try the mounting the filesystem with the 'acl' option
> 
> Which I believe is because NFSv4 has its own ACL concept, 
> which isn't posix
> ACLs.
> 
> Further digging has suggested that I probably want to enable 
> the nfs4acl_xattr
> vfs module. I tried this as an argument to my samba-tool 
> provision command:
> 
> samba-tool domain provision --use-rfc2307 --domain=${SAMBA_DOMAIN}
> --realm=${SAMBA_REALM} --server-role=dc --dns-backend=BIND9_DLZ
> --adminpass=${SAMBA_DOMAIN_PASSWORD} --option "bind 
> interfaces only = yes"
> --option "interfaces = lo net1" --option "vfs objects = nfs4acl_xattr"
> 
> But it results in a new error:
> 
> Error loading module 
> '/usr/lib/x86_64-linux-gnu/samba/vfs/nfs4acl_xattr.so':
> /usr/lib/x86_64-linux-gnu/samba/vfs/nfs4acl_xattr.so: cannot 
> open shared object
> file: No such file or directory
> 
> I believe this would be expected to come from 
> samba-vfs-modules, but that file
> is not in that package. Or any other package as far as I can tell.
> Interestingly samba-vfs-modules does seem to contain the 
> following file:
> 
> /usr/share/man/man8/vfs_nfs4acl_xattr.8.gz
> 
> Which I guess is the man page for the module that i'm trying 
> to use. But the
> module isn't there.
> 
> Thanks
> 
> Gary
> 
> 
> 
> -- System Information:
> Debian Release: 10.0
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores)
> Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, 
> TAINT_UNSIGNED_MODULE
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 
> (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> Versions of packages samba-vfs-modules depends on:
> ii  libbsd0     0.9.1-2
> ii  libc6       2.28-10
> ii  libtalloc2  2.1.14-2
> ii  libtdb1     1.3.16-2+b1
> ii  libtevent0  0.9.37-1
> ii  samba-libs  2:4.9.5+dfsg-4
> 
> Versions of packages samba-vfs-modules recommends:
> pn  libcephfs2   <none>
> ii  libdbus-1-3  1.12.12-1
> pn  libgfapi0    <none>
> 
> samba-vfs-modules suggests no packages.
> 
> _______________________________________________
> Pkg-samba-maint mailing list
> Pkg-samba-maint at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-s
> amba-maint
> 



More information about the Pkg-samba-maint mailing list