[Samba] Fruit & uchg

Jeremy Allison jra at samba.org
Wed Apr 28 16:12:36 UTC 2021


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
>
>This should give an idea about what's stored in the xattr.

You can also unpack/pack them with ndrdump I think.

$ ndrdump xattr
Usage: ndrdump [-?V] [-?|--help] [--usage] [-c|--context-file=CTX-FILE] [--validate] [--dump-data] [-l|--load-dso=STRING] [--ndr64]
         [--quiet] [--base64-input] [--hex-input] [--input=INPUT] [--print-after-parse-failure] [-d|--debuglevel=DEBUGLEVEL] [--debug-stderr]
         [-s|--configfile=CONFIGFILE] [--option=name=value] [-l|--log-basename=LOGFILEBASE] [--leak-report] [--leak-report-full]
         [-V|--version] <pipe|uuid> <format> <in|out|struct> [<filename>]

You must specify a function
known functions on 'xattr' are:
known public structures on 'xattr' are:
	xattr_DosAttrib
	xattr_DOSATTRIB
	xattr_DosEAs
	tdb_xattrs
	xattr_DosStreams
	security_descriptor_hash_v2
	security_descriptor_hash_v3
	security_descriptor_hash_v4
	xattr_NTACL
	xattr_sys_acl_hash_wrapper

xattr_DOSATTRIB is the one you want I think.



More information about the samba mailing list