[Samba] Fruit & uchg
walker.aj325 at gmail.com
Tue Apr 27 18:59:34 UTC 2021
On Tue, Apr 27, 2021 at 8:19 AM Perttu Aaltonen via samba <
samba at lists.samba.org> wrote:
> Hello Ralph & others knowledgeable in vfs_fruit and Netatalk.
> How does Samba and Netatalk store the “uchg” user immutable file flag set
> in macOS? Is it stored in an extended attribute? The behaviour I’m seeing
> is that setting this flag from either AFP or SMB side isn’t reflected on
> the other side. Is there a way to change this behaviour?
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
Ralph can correct me if I'm wrong, but I believe the MacOS SMB client
converts schg to the DOS readonly attribute. How this is applied to the
samba server depends on samba's configuration. The default is to write it
inside the user.DOSATTRIB xattr for the file. In the case of FreeNAS we
convert DOS readonly to FreeBSD's urdonly file flag. In this case readonly
is enforced by kernel / filesystem, but behavior differs from schg. I
presume when you write to do the same to a MacOS SMB server it sets uchg on
the other side?
More information about the samba