[Samba] [smbclient] Fails sending pop-up message with -M

Rowland Penny rpenny at samba.org
Wed Sep 29 19:03:45 UTC 2021


On Wed, 2021-09-29 at 20:51 +0200, Gilles via samba wrote:
> For some reason, I forgot to include the error message :-/
> 
> ~# smbclient -M \\WIN-PC "test"
> test: Not enough '\' characters in service
> 
> I tried the different versions shown below, but always get the same 
> error. It doesn't look like it's the remote host that's the issue.
> 
> On 29/09/2021 18:38, Rowland Penny via samba wrote:
> > On Wed, 2021-09-29 at 09:02 -0700, Jeremy Allison via samba wrote:
> > > On Wed, Sep 29, 2021 at 05:52:17PM +0200, Gilles via samba wrote:
> > > > On 29/09/2021 17:40, Jeremy Allison wrote:
> > > > > On Wed, Sep 29, 2021 at 05:03:54PM +0200, Gilles via samba
> > > > > wrote:
> > > > > > Hello,
> > > > > > 
> > > > > >  From Debian 9 running Samba 4-5-16, I'd like to send a
> > > > > > pop-up
> > > > > > message to a Windows (7) host, but none of the following
> > > > > > works:
> > > > > > 
> > > > > > smbclient -M \\WIN-PC "test"
> > > > > > smbclient -M //WIN-PC "test"
> > > > > > smbclient -M ////WIN-PC "test"
> > > > > > smbclient -M '\\WIN-PC' "test"
> > > > > > 
> > > > > > Would someone have a working example?
> > > > > > 
> > > > > > FWIW, the Windows host is running a Comodo firewall. Would
> > > > > > I
> > > > > > need
> > > > > > to allow connection to a given TCP/UDP port?
> > > > > -M messaging is an SMB1-only thing I believe. Is the Windows7
> > > > > box
> > > > > running an SMB1 server ?
> > > > I don't know what an SMB1 server is. Is it a service I need to
> > > > run
> > > > on
> > > > the Windows host?
> > > Yes, but you really shouldn't :-).
> > > 
> > > https://techcommunity.microsoft.com/t5/storage-at-microsoft/stop-using-smb1/ba-p/425858
> > > 
> > Win 7 does use SMBv1, as will Samba 4.5.16 on Debian 9, so if it
> > did
> > work on those EOL things, it still should. Easiest way to find out
> > if
> > it is the firewall, temporarily turn it of and see if it works.
> > 
> > Rowland

Is the Win7 machine running winpopup ?
Have you tried without any slashes ?

Rowland





More information about the samba mailing list