What user on what computer?

Peter Samuelson peter at cadcamlab.org
Wed May 31 12:47:26 GMT 2000

[Ludwig Meyerhoff <ludwig at antar.com>]
> That is quite nice, but there is a small problem: While the username
> is still the same, so does not the computername.

To track down a user $nt_user on an NT machine:

  nmblookup -S "${nt_user}#03" | awk '/<00> -  /{print $1}'

I have no idea if this works in Windows95/98.  Note also that nmblookup
does not pick up your smb.conf settings so if you have a WINS server
you will want to add "-R -U{ip-of-wins-server}".


More information about the samba mailing list