I installed FreeBSD 9.1 with ZFS on root on my NAS and I updated all packages and ports via the portupgrade utility. I just installed Samba4 via ports (Samba 4.0.4_1) but I'm getting a weird error when trying to set it up.
ACLs should have been enabled on / since
And yet it seems Samba4 expects something more:
I'm not sure if I should configure some other mount points (of the same pool) to support ACL? Could this be the cause? Like doing
When starting the Samba4 daemon no error is shown but the daemon doesn't really start:
NTP has been started (but maybe not configured correctly) and is running. For now I'd be happy enough to share a folder with a workgroup like I've been doing with Samba3 on GNU/Linux in the past. Since this is a home network there is no need (at least for now) for Domain Controller. When setting it up as standalone I get the same error though.
I tried to configure it manually using the /usr/local/etc/smb4.conf file but without any success: the daemon shuts down immediately.
Does anyone have any suggestion or I'd be better off with Samba3 (at least for the moment)?
Thank you very much in advance.
ACLs should have been enabled on / since
Code:
$ zfs get aclmode zroot
NAME PROPERTY VALUE SOURCE
zroot aclmode passthrough local
Code:
$ zfs get aclinherit zroot
NAME PROPERTY VALUE SOURCE
zroot aclinherit passthrough local
Code:
$ sudo samba-tool domain provision
Realm [TEST.COM]:
Domain [TEST]:
Server Role (dc, member, standalone) [dc]:
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]:
DNS forwarder IP address (write 'none' to disable forwarding) [192.168.1.1]:
Administrator password:
Retype password:
Looking up IPv4 addresses
More than one IPv4 address found. Using 192.168.1.50
Looking up IPv6 addresses
No IPv6 address will be assigned
set_nt_acl_no_snum: fset_nt_acl returned zero.
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.
File "/usr/local/lib/python2.7/site-packages/samba/netcmd/domain.py", line 398, in run
use_rfc2307=use_rfc2307, skip_sysvolacl=False)
File "/usr/local/lib/python2.7/site-packages/samba/provision/__init__.py", line 2043, in provision
raise ProvisioningError("Your filesystem or build does not support posix ACLs, which s3fs requires. Try the mounting the filesystem with the 'acl' option.")
Code:
zfs set aclmode=passthrough zroot/usr
zfs set aclinherit=passthrough zroot/usr
Code:
$ cat /var/log/samba4/log.samba
[2013/05/04 19:14:47, 0] ../source4/smbd/server.c:369(binary_smbd_main)
samba version 4.0.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2012
[2013/05/04 19:14:48, 0] ../source4/smbd/server.c:475(binary_smbd_main)
samba: using 'standard' process model
[2013/05/04 19:14:48, 0] ../source4/nbt_server/interfaces.c:205(nbtd_add_socket)
Failed to bind to 192.168.1.255:137 - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED
[2013/05/04 19:14:48, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
task_server_terminate: [nbtd failed to setup interfaces]
[2013/05/04 19:14:48, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
task_server_terminate: [dreplsrv: Failed to connect to local samdb: WERR_DS_UNAVAILABLE
]
[2013/05/04 19:14:48, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
task_server_terminate: [kdc: krb5_init_context samdb RODC connect failed]
[2013/05/04 19:14:48, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
task_server_terminate: [Cannot start Winbind (domain controller): Failed to find record for HOMELAN in /var/db/samba4/private/secrets.ldb: No such object: (null): Have you provisioned the HOMELAN domain?]
[2013/05/04 19:14:48, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
task_server_terminate: [kccsrv: Failed to connect to local samdb: WERR_DS_UNAVAILABLE
]
[2013/05/04 19:14:48, 0] ../source4/smbd/server.c:210(samba_terminate)
samba_terminate: nbtd failed to setup interfaces
[2013/05/04 19:14:48, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
task_server_terminate: [Failed to obtain server credentials, perhaps a standalone server?: NT_STATUS_CANT_ACCESS_DOMAIN_INFO
]
I tried to configure it manually using the /usr/local/etc/smb4.conf file but without any success: the daemon shuts down immediately.
Does anyone have any suggestion or I'd be better off with Samba3 (at least for the moment)?
Thank you very much in advance.