Access samba shares from Windows Vista

In Vista, use 'regedit' to change to '1' the value of:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\LMCompatibilityLevel

(the default value of this key is '3')


Check whether smb.conf is correct

testparm

List connected users and locked files

smbstatus

List the shares of a host

smbclient -L <host> -N

Lookup NetBIOS names

nmblookup -S <host>

Mount a remote shared filesystem

mount -t smbfs -o fmask=644,dmask=755,uid=<user>,guest //<host>/<share> /mnt

Send a WinPopup message

echo "message" | smbclient -M <NetBIOS_name>