getcifsacl does not work with CIFS mount versions 2 or 3

Miloslav Hůla miloslav.hula at
Thu Jan 24 14:01:24 UTC 2019

Dne 2019-01-24 v 14:19 Aurélien Aptel napsal(a):
> Miloslav Hůla via samba-technical <samba-technical at>
> writes:
>> When I mount CIFS share (mount -t cids) with vers=1.0 I can perform
>> getcifsacl sucessfully. But when I mount with vers=2.0, or 2.1, or 3.0,
>> ACL reading fails.
>> getxattr error: 95
>> CONTROL:0x0
>> Why getcifsacl depends on SMB protocol version? Can I read ACL via newer
>> SMB protocol?
> I believe you need a recent kernel enough to use the new ioctl and the
> not-yet-released cifs-utils with the corresponding new tool smbinfo.

Thank you for pointing me out!

I compiled mount.cifs and smbinfo from mentioned next branch and I got 

# smbinfo secdesc /mnt/cifs/file.txt
ioctl failed with Inappropriate ioctl for device

so, the 4.9.0-8-amd64 is probably too old.

Which version is new enough? Some 4.x or 5.0?


More information about the samba-technical mailing list