[Samba] Why some user names are not resolved by 'getfacl' ?

Nicola Mingotti nmingotti at gmail.com
Wed Feb 24 20:55:53 UTC 2021


ERRATA CORRIGE.

---- wrong ----
WINDOM\riccardo at nas $> getfacl aaa-test-riccardo-2/
-------------

To change with
------------------
WINDOM\riccardo at nas> getent passwd
------------------

Sorry

n.


On 2/24/21 9:49 PM, Nicola Mingotti wrote:
> Hi,
>
> I have a Samba NAS and a Samba DC. Both running in Linux Debian 10, 
> stable.
> Samba installed via .deb packages.
>
> Recently i found this strange behavior in 'getfacl' output. Some user 
> names
> are correctly reported, for others instead only a number is shown.
>
> Note that, if the same domain user runs
> -------
> WINDOM\riccardo at nas $> getfacl aaa-test-riccardo-2/
> -------
> all usernames are correctly shown.
> So, for example:
> -------
> WINDOM\riccardo at nas> getent passwd | grep 10512
> WINDOM\adam1:*:11127:10512::/home/WINDOM-adam1:/bin/bash
> ---------
>
> Misbehavior example. Observe user '10512' is not resolved to 
> 'WINDOM\adam1', for example.
> ------------------------------
> WINDOM\riccardo at nas $> getfacl aaa-test-riccardo-2/
> ---- long output ------
> # file: aaa-test-riccardo-2/
> # owner: root
> # group: adm
> user::rwx
> user:10512:rwx
> user:10513:r-x
> user:11157:rwx
> user:11159:r-x
> user:11173:r-x
> user:11180:rwx
> group::r-x
> group:WINDOM\\domain\040admins:rwx
> group:WINDOM\\domain\040users:r-x
> group:WINDOM\\riccardo:rwx
> group:WINDOM\\g-ufficiotecnico:rwx
> group:WINDOM\\g-leggitutto:r-x
> group:WINDOM\\g-utentiufficio:r-x
> group:WINDOM\\g-foto-video:rwx
> mask::rwx
> other::---
> default:user::rwx
> default:user:10512:rwx
> default:user:10513:r-x
> default:user:WINDOM\\riccardo:rwx
> default:user:11157:rwx
> default:user:11159:r-x
> default:user:11173:r-x
> default:user:11180:rwx
> default:group::r-x
> default:group:WINDOM\\domain\040admins:rwx
> default:group:WINDOM\\domain\040users:r-x
> default:group:WINDOM\\g-ufficiotecnico:rwx
> default:group:WINDOM\\g-leggitutto:r-x
> default:group:WINDOM\\g-utentiufficio:r-x
> default:group:WINDOM\\g-foto-video:rwx
> default:mask::rwx
> default:other::---
> ------------------
>
> I rebooted the NAS, that was of no help.
>
> I can tell you that this directory was made by a Windows system.
> If a make the same directory, with the same domain user, but from
> a Linux system the result is much shorter.
>
> Thank in advance for any hint you may give me !
>
> bye
> Nicola
>
>
>
>



More information about the samba mailing list