[Samba] How to get login name of logged user?

ra at yandex roma-a at yandex.ru
Wed Jul 19 05:49:51 GMT 2006


Hello, Huck.

I'm sorry I was not clear enough. I don't need login names of users
connecting to my shares, I want to get windows account login name of
user logged to remote machine. I need this for integration with squid
for transparent authentication.


You wrote 18 july 2006 , 18:19:00:

> smbstatus does this for me.

> Samba version 3.0.10-1.4E.6
> PID     Username      Group         Machine
> -------------------------------------------------------------------
> 24250   dpatchin      staff         staff10      (192.168.0.104)
> 24279   jlovenguth    staff         staff03      (192.168.0.120)
> 24307   bgosney       office        frontoffice03 (192.168.0.161)
> 24201   dhuckaby      dhuckaby      dyno         (192.168.0.80)
> 23994   hfowler       hfowler       staff01      (192.168.0.163)


> That's what the output looks like.


> ra at yandex wrote:
>> Hello list.
>> Is there any way to get login name of a currently logged user on remote machine using samba?
>> I can get the list of all users with command smbclient -L host, but how do I know who of them logged now?
>> Thanks in advance.
>> Roman Gorohov.
>> 


Roman Gorohov.



More information about the samba mailing list