[Samba] sAMAccountName is Computer name

Arnaud FLORENT aflorent at iris-tech.fr
Fri Nov 19 09:10:37 UTC 2021


Hi Ivan


smbstatus will report all active connexions (with users AND computers  
accounts)


to  only see users,  you could try to grep "smbstatus -b" output to 
exclude "domain computers" or include only "domain users"


windows can also close the connexion on inactivity even if user is still 
logged in.




Le 18/11/2021 à 11:45, Ivan Jurišić via samba a écrit :
> Dear Rowland,
>
> I think we don't understand each other.
>
> I need to see on my screen witch active users are connected currently on my samba active directory.
>
> Can You instruct me how to see currently connected users on my server.
>
> Best regards,
> Ivan
>
> Na 17. studenoga 2021. 16:00:02 CET, Rowland Penny via samba <samba at lists.samba.org> wrote:
>> On Wed, 2021-11-17 at 15:34 +0100, Ivan Jurišić via samba wrote:
>>>    I direct connect to Samba AD DC server and run smbstatus :
>>>
>>> Samba version 4.13.13-Debian
>>> PID     Username     Group        Machine
>>>      
>>>      Protocol Version  Encryption           Signing
>>> -------------------------------------------------------------------
>>> ---------------------------------------------------------------------
>>> 297104  EXAMPLE\pc-ijurisic$ EXAMPLE\domain computers 192.168.22.188
>>> (ipv4:192.168.22.188:57676) SMB3_11           -
>>> AES-128-CMAC
>>>
>>> I think output smstatus need to be:
>>> Username: EXAMPLE\ijurisic
>> NO
>>
>>> Group: EXAMPLE\domain users
>> NO
>>
>>> Machine: EXAMPLE\pc-ijurisic
>> Possibly, but I bet 192.168.22.188 is the ipaddress for pc-ijurisic
>>
>>> But I have:
>>>
>>> Username: EXAMPLE\pc-ijurisic$
>>> Group: EXAMPLE\domain
>> No, that is EXAMPLE\domain computers
>>
>>> Machine: computers
>> and that is 192.168.22.188 (ipv4:192.168.22.188:57676)
>>
>> Remember what I said about a computer being a user ?
>> The output shows that the 'user' EXAMPLE\pc-ijurisic$ (aka A COMPUTER)
>> is connected.
>>> If I run smbstatus -u EXAMPLE\ijurisic or smbstatus -u ijurisic got
>>> blank list on my server.
>> Is EXAMPLE\ijurisic actually connected to a share ?
>>
>>> Very strange.
>> Not really, everything seems to be working as it should.
>>
>> Rowland
>>
>>
>>
>> -- 
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba

-- 
Arnaud FLORENT
IRIS Technologies




More information about the samba mailing list