[Samba] Is it possible to 'getfacl' on a mounted samba share ?

Nicola Mingotti nmingotti at gmail.com
Mon Jan 25 11:05:37 UTC 2021


Hi Ralph,

I think you spot the right corner !

. I changed /etc/fstab as follows
=========== /etc/fstab 
===========================================================
# mount disco R
//nas.borghi.lan/sambaDisk/DiscoS/    /mnt/discoR   cifs 
vers=1.0,credentials=/usr/local/etc/discoR.credentials    0    0
==================================================================================

. remount disk /mnt/discoR

. Now it is almost all working:

p at linte> getfacl /mnt/discoR/Borghi/
getfacl: Removing leading '/' from absolute path names
# file: mnt/discoR/Borghi/
# owner: root
# group: adm
user::rwx
group::r-x
group:WINDOM\\domain\040users:r-x
group:10512:rwx
group:11159:r-x
group:11173:r-x
mask::rwx
other::---
default:user::rwx
default:group::r-x
default:group:WINDOM\\domain\040users:r-x
default:group:10512:rwx
default:group:11159:r-x
default:group:11173:r-x
default:mask::rwx
default:other::---

. The only thing still missing is the group names. That is missing also
if i run 'getfacl' as a domain user.

. Is there a way to get also the group names instead of their id ?

. What am I missing out if I mount the disk with "vers=1.0" ?

. Are there any danger I could mess up stuff in the NAS which runs on
a higher protocol version when I mount it as "1.0" ?


Thank you for your help !

bye

Nicola

















On 1/25/21 11:11 AM, Ralph Boehme wrote:
> Ho!
>
> Am 1/24/21 um 5:30 PM schrieb Nicola Mingotti via samba:
>> But, If I try to run "getfacl" from a linux machine mounting the
>> samba share I can't seen anything. Is it normal?
>
> I guess that only works with SMB1 and UNIX extensions as it is built 
> on being able to query native POSIX ACL over the wire. It probably 
> doesn't support querying native NT ACL and showing it as POSIX ACL 
> (for good reasons as the mapping is lossy).
>
> Aurelien, am I right?
>
> Cheers!
> -slow
>




More information about the samba mailing list