Bug 284531 - net/samba420: samba-tool could not recognize ACLs support for UFS
Summary: net/samba420: samba-tool could not recognize ACLs support for UFS
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: FreeBSD Samba Team (mail alias)
URL:
Keywords:
Depends on:
Blocks: DEFAULT_VERSIONS=samba=4.20
  Show dependency tree / graph
 
Reported: 2025-02-03 08:39 UTC by shellingfield
Modified: 2025-02-06 15:34 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (samba)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shellingfield 2025-02-03 08:39:59 UTC
env:
 - FreeBSD 14.2-RELEASE-p1
 - net/samba420

command:
samba-tool ntacl sysvolreset

result:
ERROR(<class 'samba.provision.ProvisioningError'>): uncaught exception - ProvisioningError: Your filesystem or build does not support ACLs, which s3fs requires.  Try the mounting the filesystem with the 'acl' option.
  File "/usr/local/lib/python3.11/site-packages/samba/netcmd/__init__.py", line 285, in _run
    return self.run(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/samba/netcmd/ntacl.py", line 449, in run
    provision.setsysvolacl(samdb, sysvol,
  File "/usr/local/lib/python3.11/site-packages/samba/provision/__init__.py", line 1690, in setsysvolacl
    raise ProvisioningError("Your filesystem or build does not support ACLs, which s3fs requires.  "

this was worked on net/samba419 w/o this kind of error.


sysvol stored on /var have been mounted w/ acls correctly via /etc/fstab as below

# cat /etc/fstab
# Device        Mountpoint      FStype  Options Dump    Pass#
/dev/vtbd0p2    /               ufs     rw,acls 1       1
/dev/vtbd0p1    /boot/efi       msdosfs rw      2       2
/dev/vtbd0p3    none            swap    sw      0       0

# mount
/dev/vtbd0p2 on / (ufs, local, soft-updates, journaled soft-updates, acls)
devfs on /dev (devfs)
/dev/vtbd0p1 on /boot/efi (msdosfs, local)
fdescfs on /var/run/samba4/fd (fdescfs)

# ls -ld /var/db/samba4/sysvol
drwxrwx---+ 3 root BUILTIN\administrators 512 Feb  3 17:21 /var/db/samba4/sysvol

# getfacl /var/db/samba4/sysvol/
# file: /var/db/samba4/sysvol/
# owner: root
# group: BUILTIN\administrators
user::rwx
user:root:rwx
user:BUILTIN\administrators:rwx
user:BUILTIN\server_operators:r-x
user:NT Authority\system:rwx
user:NT Authority\authenticated users:r-x
group::rwx
group:BUILTIN\administrators:rwx
group:BUILTIN\server_operators:r-x
group:NT Authority\system:rwx
group:NT Authority\authenticated users:r-x
mask::rwx
other::---


just i thought, this also could affect "samba-tool domain provision".

regards,