[Samba] Question about smbc_stat() and smbc_statvfs() in libsmbclient

Jeremy Allison jra at samba.org
Thu May 28 16:11:13 UTC 2020


On Thu, May 28, 2020 at 10:43:17AM +0200, Peter Eriksson wrote:
> Re: the smbc_stat() returning wrong st_uid/st_gid: Yeah, I get why it’s difficult, but perhaps it should just return -1/-1 instead? It too is wrong but probably less confusing than seeing the local user’s uid/gid there…?
> 
> Anyway, I’ve been working on a “grand unifying :-)” ACL managing (CLI) tool since I got tired of all the different and quite frankly confusing/frustrating tools to manage ACL currently available. So I can now use the same command on all platforms. It current builds and works for Linux, FreeBSD, Solaris & MacOS and I’ve also recently added SMB support to it (via libsmbclient, currently requires Kerberos. 
> 
> I’ve been using smbc_getxattr() and smbc_setxattr() for reading and writing SMB ACLs, but there are some problems with that so I’ve started wondering if perhaps there is some better way I _should_ use instead? Something that doesn’t gets in the way and re-orders ACLs under my feet for example...
> 
> ( Problems with ACLs being reordered: https://bugzilla.samba.org/show_bug.cgi?id=14397 )
> 
> My tool:
> 
> 	https://github.com/ptrrkssn/acltool
> 
> - Peter

Oh that tool looks great ! Sorry for the libsmbclient
sorting screwup. We'll try and get that fixed.



More information about the samba mailing list