[SAMBA]: Net send'ed message to receive.

Discussion in 'Linux Networking' started by =?iso-8859-2?q?Jacek_Ro=BFen?=, Nov 23, 2003.

  1. Hello,

    I am running Samba version 2.2.3a-12.3 on our Debian linux box. There is
    a number of Windows users who extremally like to use Windows tool ,,net
    send'' to WinPopup others- that is to all computers in a workgroup. There is a
    need to log all of these messages on server running Samba. Unfortunately
    smb.conf's message command doesn't handle ,,net send *'' messages.
    Can you help me with solving that problem ? I've been google'ing for some
    time before writting here and I couldn't find anything that matched my

    =?iso-8859-2?q?Jacek_Ro=BFen?=, Nov 23, 2003
    1. Advertisements

  2. In fact, smb.conf´s "message command" is quite exactly what you need to
    use. man smb.conf:

    "message command (G)
    this specifies which command to run when the server receives a WinPopup
    style message."

    The (G) means that this option belongs in the [global] section.
    Try something like:
    message command = bash -c 'echo "from %f to %t: %s" >> /var/log/popups' &
    Robert Spielmann, Nov 23, 2003
    1. Advertisements

  3. I agree, when the message is sent directly to the server (smbclient -M
    host). But in case of ,,net send *'' message command doesn't work.

    =?iso-8859-2?q?Jacek_Ro=BFen?=, Nov 23, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.