Title: How to send 'net sends' using Samba Keywords: Samba net send smb nbtstat Author: Daniel Trembath, 16th November 2002 Edited: same First off, something that isn't actually the net-send but will come in handy later. On windows you can type 'nbtstat -A 192.168.0.22' to see what netbios services are running on a given machine. The same thing with samba is: nmblookup -A 192.168.0.22 Now to the Net Sends with Samba... On windows the normal way to do a net send is 'net send EMILY somemessage' where EMILY is the name of their machine. With samba it is: smbclient -M EMILY then press enter. After a second or two it should say "Connected. Type your message, ending it with a Control-D" then just type your message (even with carriage returns) and then press control-D to send. Just like using the unix 'write' utility. Now, on windows you can also type 'net send 192.168.0.22 hi there' and the netsend will work to that IP address. This is a bit harder to do on linux. You can send it to an IP address, but you still need to know the windows name of the machine you want to send to. So to send to emily, like in the example you have to do this (in the example the computer is called EMILY). smbclient -I 192.168.0.117 -M EMILY But what if you don't know the name of the machine? Well just run the 'nmblookup' command I showed first and you're set. The machine name is next to codes <00> <20> or maybe <03> usually. I'm afraid I haven't looked up these codes myself so don't trust these 100%. There are also quite a few other switches you can use with this command to specify the name of the machine the message reports to come from plus some others. Look them up in the MAN pages. Have fun! Cheers -Daniel