[Samba] Get logged on username (several sessions on the same machine)

Kurthermal kurt.hermal at laposte.net
Mon Mar 10 21:52:43 GMT 2008


Maybe there is a way to tell samba to close previous session when a 
different login is used from the same computer ?

Kurthermal wrote :
> Yes, I want to get currently logged on users at any time.
>
> Ryan Novosielski wrote :
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> What do you want it for? You can get that at login time by causing a
>> script to write out the value of %U. Do you want a "right now" snapshot?
>>
>> Kurthermal wrote:
>>  
>>> I repost my question because I've noticed it on several Samba servers
>>> and I'm sure it is certainly a known problem.
>>> My configuration :
>>> Samba 3.0.24
>>> Ubuntu Feisty
>>>
>>> Any help will be highly appreciated.
>>> Kurt
>>>
>>>
>>> Kurthermal wrote :
>>>    
>>>> Hello,
>>>> I'm writting an application that will be running on a Samba PDC. It
>>>> has to get <login> (%username%) currently logged on some windows NT
>>>> domain clients.
>>>> I began to use 'net status sessions' but sometimes it returns more
>>>> than one user currently logged on the same windows client.
>>>> What's happening ?
>>>> Is there a solution to avoid this ?
>>>> Are there other methods to get <login> ?
>>>>
>>>> Thanks,
>>>> K.
>>>>       
>>
>>  


More information about the samba mailing list