Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to send message to the network PC(Ubuntu also).

command on myself(to send message to me,just for test):

smbclient -M myName -b

error is:

message start: ERRSRV - ERRmsgoff (Not receiving messages.)

command on remote machine:

smbclient -M remoteName -b

error is:

Connection to remoteName failed. Error NT_STATUS_BAD_NETWORK_NAME

myName and remoteName are hostname values. Is i right?

thanks for help

share|improve this question

1 Answer 1

up vote 2 down vote accepted

When a NET SEND style message is sent to a system running Samba, it will run the command specified in the message command configuration. According to the smb.conf man page, messages will be rejected by default, which might explain what you're seeing:

If you don´t have a message command then the message won´t be delivered and Samba will tell the sender there was an error. Unfortunately WfWg totally ignores the error code and carries on regardless, saying that the message was delivered.

One program that can take these messages from Samba and display them on the desktop is LinPopup:

http://linpopup2.sourceforge.net/

I haven't tried it personally, and it doesn't appear to be packaged for Ubuntu, so you would probably have to build it from source.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.