[Samba] Fruit & uchg
perttu.aaltonen at mac.com
Thu Apr 29 06:46:37 UTC 2021
> On 28. Apr 2021, at 19.36, Andrew Walker <walker.aj325 at gmail.com> wrote:
> On Wed, Apr 28, 2021 at 12:12 PM Jeremy Allison <jra at samba.org <mailto:jra at samba.org>> wrote:
> On Wed, Apr 28, 2021 at 08:43:50AM -0400, Andrew Walker via samba wrote:
> >> A script could of course set the flag completely from the client side,
> >> finding files through AFP that have uchg set and set it on the same file
> >> through SMB. Probably easier to do it that way anyway but I’m still
> >> interested what actually gets stored in that attribute.
> >https://gitlab.com/samba-team/devel/samba/-/raw/master/librpc/idl/xattr.idl <https://gitlab.com/samba-team/devel/samba/-/raw/master/librpc/idl/xattr.idl>
> >This should give an idea about what's stored in the xattr.
> You can also unpack/pack them with ndrdump I think.
> Same can be done through python bindings:
Thanks for the tips. Eventually I’ll probably do something like this on a Mac client to find and set the flag:
# find /Volumes/AFPSERVER/ -flags uchg -print | sed 's/AFPSERVER/SMBSERVER/' | while read LOCKEDFILE; do chflags uchg "$LOCKEDFILE"; done
More information about the samba