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

Michael Heydon michaelh at jaswin.com.au
Wed Mar 12 23:33:30 GMT 2008


Kurthermal wrote:
> But the machine has been rebooted and another user has opened a 
> session on it, but 'net status session' or 'net session' continue to 
> claim that there are 2 users logged on the same machine. It isn't 
> always the case, I think it can be due for example to a reset of the 
> machine so windows didn't close cleanly the network resources.
>
> Is there a way to get samba close all connections from a machine if 
> another user try to open a new network resource from that machine ?
reset on zero vc
> <snip>

I'm not sure what would happen in cases where you legitimately have 
multiple users on a single machine (term servers, someone using "run 
as", services accessing shares) but in the case of a single user PC it 
should do what you want.

*Michael Heydon - IT Administrator *
michaelh at jaswin.com.au <mailto:michaelh at jaswin.com.au>




More information about the samba mailing list