[Samba] Identify AD Domain User processes from top

Rowland Penny
Wed, 05 Aug 2015 08:47:26 -0000

On 05/08/15 09:35, Zerwes, Klaus wrote:
> Helo Mike
> what about
> getent passwd 3000042 3000047 3000024
>
> Klaus
> ________________________________________
> Von: samba [samba-bounces at lists.samba.org]&quot; im Auftrag von
&quot;Mike [1100100 at gmail.com]
> Gesendet: Mittwoch, 5. August 2015 00:48
> An: samba
> Betreff: [Samba] Identify AD Domain User processes from top
>
> Is there a way to take the effective user output from top and figure out
> which AD Domain User is indicated by the smbd process?
>
> 2834   root      20   0  584928  38292   5784 R  24.6  0.2  26:06.20 samba
> 6448   3000042   20   0  643128  44424  12368 S  20.3  0.3  15:23.92 smbd
> 28432 3000047   20   0  635816  38856   6864 S   1.3  0.2   0:00.04 smbd
> 28433 3000024   20   0  635816  38868   6876 S   1.0  0.2   0:00.03 smbd
>
> The output above is from SerNet Samba ver. 4.1.19 deployed as the sole AD
> DC on the LAN.
>
> samba-tool user list only states the Domain User name with no UID.
>
> Thx,
> Mike
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>

I don't think getent will work, if it did, you wouldn't need to do it
:-)
You could try 'wbinfo --uid-info=3000042'

Rowland