Surely someone out there knows how to notify their Windows users that access to their samba server is going to be terminated.... Any help will be *greatly* appreciated. ------ Original Message ------- I would like to shut down samba before I begin my backup routine. Before I do this, I would like to send a message to the users who are logged in on their Windows machines, asking them to log out. I would prefer this to be like a ShowMessage dialog box, if possible. Could anyone please tell me how I can do this? A Redhat tech support specialist told me he thinks this is possible through samba or smb-client. __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com
I could also *really* do to use this feature now and again! Regards Dr. Andy Dawson A.J.Dawson@Bradford.ac.uk http://www.mossie.org http://www.museum-explorer.org.uk Never attribute to malice that which is adequately explained by stupidity. On Tue, 20 May 2003, Nicholas Metsovon wrote:> Surely someone out there knows how to notify their > Windows users that access to their samba server is > going to be terminated.... > > Any help will be *greatly* appreciated. > > ------ Original Message ------- > I would like to shut down samba before I begin my > backup routine. Before I do this, I would like to > send a message to the users who are logged in on their > Windows machines, asking them to log out. I would > prefer this to be like a ShowMessage dialog box, if > possible. > > Could anyone please tell me how I can do this? A > Redhat tech support specialist told me he thinks this > is possible through samba or smb-client. > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
I'll second this request - I can't find any mention of this anywhere! -----Original Message----- From: Nicholas Metsovon [mailto:nmetsovo@yahoo.com] Sent: 20 May 2003 16:45 To: samba@lists.samba.org Subject: [Samba] ShowMessage (second attempt) Surely someone out there knows how to notify their Windows users that access to their samba server is going to be terminated.... Any help will be *greatly* appreciated. ------ Original Message ------- I would like to shut down samba before I begin my backup routine. Before I do this, I would like to send a message to the users who are logged in on their Windows machines, asking them to log out. I would prefer this to be like a ShowMessage dialog box, if possible. Could anyone please tell me how I can do this? A Redhat tech support specialist told me he thinks this is possible through samba or smb-client. __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Googling for winpopup linux gives at least two possibilities, LinPopUp and Kpopup. You'll have to have winpopup running on Win9x, and (I believe) the messenger service on NT4, 2K, XP. ---------- Original Message ---------------------------------- From: "A.J.Dawson" <A.J.Dawson@Bradford.ac.uk> Date: Wed, 21 May 2003 09:07:31 +0100 (GMT Daylight Time)>I could also *really* do to use this feature now and again! > >Regards > >Dr. Andy Dawson >A.J.Dawson@Bradford.ac.uk >http://www.mossie.org >http://www.museum-explorer.org.uk > > Never attribute to malice that which is adequately explained by stupidity. > > >On Tue, 20 May 2003, Nicholas Metsovon wrote: > >> Surely someone out there knows how to notify their >> Windows users that access to their samba server is >> going to be terminated.... >> >> Any help will be *greatly* appreciated. >> >> ------ Original Message ------- >> I would like to shut down samba before I begin my >> backup routine. Before I do this, I would like to >> send a message to the users who are logged in on their >> Windows machines, asking them to log out. I would >> prefer this to be like a ShowMessage dialog box, if >> possible. >> >> Could anyone please tell me how I can do this? A >> Redhat tech support specialist told me he thinks this >> is possible through samba or smb-client. >> >> >> __________________________________ >> Do you Yahoo!? >> The New Yahoo! Search - Faster. Easier. Bingo. >> http://search.yahoo.com >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: http://lists.samba.org/mailman/listinfo/samba >> > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba >
smbclient -M from SAMBA server or "net send" from a Windows box. man smbclient for more info. ---------- Original Message ---------------------------------- From: "A.J.Dawson" <A.J.Dawson@Bradford.ac.uk> Date: Wed, 21 May 2003 16:36:35 +0100 (GMT Daylight Time)>Do you know whether there is any way for me to use some sort of command >line tool to send messages only? I am only interested in sending messages >from the Samba server, not receiving them on the server at all. > >Ideally I'd prefer not to use a GUI tool as that involves leaving >X-Windows running all the time on the server - I usually boot it only as >far as text mode. > >Regards >Andy > > >On Wed, 21 May 2003, Dan Shadix wrote: > >> Googling for winpopup linux gives at least two possibilities, LinPopUp and Kpopup. You'll have to have winpopup running on Win9x, and (I believe) the messenger service on NT4, 2K, XP. >> >> >> >> ---------- Original Message ---------------------------------- >> From: "A.J.Dawson" <A.J.Dawson@Bradford.ac.uk> >> Date: Wed, 21 May 2003 09:07:31 +0100 (GMT Daylight Time) >> >> >I could also *really* do to use this feature now and again! >> > >> >Regards >> > >> >Dr. Andy Dawson >> >A.J.Dawson@Bradford.ac.uk >> >http://www.mossie.org >> >http://www.museum-explorer.org.uk >> > >> > Never attribute to malice that which is adequately explained by stupidity. >> > >> > >> >On Tue, 20 May 2003, Nicholas Metsovon wrote: >> > >> >> Surely someone out there knows how to notify their >> >> Windows users that access to their samba server is >> >> going to be terminated.... >> >> >> >> Any help will be *greatly* appreciated. >> >> >> >> ------ Original Message ------- >> >> I would like to shut down samba before I begin my >> >> backup routine. Before I do this, I would like to >> >> send a message to the users who are logged in on their >> >> Windows machines, asking them to log out. I would >> >> prefer this to be like a ShowMessage dialog box, if >> >> possible. >> >> >> >> Could anyone please tell me how I can do this? A >> >> Redhat tech support specialist told me he thinks this >> >> is possible through samba or smb-client. >> >> >> >> >> >> __________________________________ >> >> Do you Yahoo!? >> >> The New Yahoo! Search - Faster. Easier. Bingo. >> >> http://search.yahoo.com >> >> -- >> >> To unsubscribe from this list go to the following URL and read the >> >> instructions: http://lists.samba.org/mailman/listinfo/samba >> >> >> > >> > >> >-- >> >To unsubscribe from this list go to the following URL and read the >> >instructions: http://lists.samba.org/mailman/listinfo/samba >> > >> > >Dr. Andy Dawson >A.J.Dawson@Bradford.ac.uk >http://www.mossie.org >http://www.museum-explorer.org.uk > > Never attribute to malice that which is adequately explained by stupidity. > >
Yes, smbclient can send messages to the users. See the man pages for smbclient. But it does it one at a time. If you want to send a message to all users, you probably will have to write a perl script. That's how I do it here. Al. --------------------------------------------------------------------------------- | Alfredo Ramos This space available for rent. | Educational Technology Get your product moving. Advertise here! | Rice University. | Email: ralf@is.rice.edu --------------------------------------------------------------------------------- On Tue, 20 May 2003, Nicholas Metsovon wrote:> Surely someone out there knows how to notify their > Windows users that access to their samba server is > going to be terminated.... > > Any help will be *greatly* appreciated. > > ------ Original Message ------- > I would like to shut down samba before I begin my > backup routine. Before I do this, I would like to > send a message to the users who are logged in on their > Windows machines, asking them to log out. I would > prefer this to be like a ShowMessage dialog box, if > possible. > > Could anyone please tell me how I can do this? A > Redhat tech support specialist told me he thinks this > is possible through samba or smb-client. > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
>From: "A.J.Dawson" <A.J.Dawson@Bradford.ac.uk> >Subject: Re: [Samba] ShowMessage (second attempt) >To: Nicholas Metsovon <nmetsovo@yahoo.com> >Cc: samba@lists.samba.org>I could also *really* do to use this feature now and again! > >Regards > >Dr. Andy Dawson >A.J.Dawson@Bradford.ac.uk >http://www.mossie.org >http://www.museum-explorer.org.uk > > Never attribute to malice that which is adequately explained by stupidity. > > >On Tue, 20 May 2003, Nicholas Metsovon wrote: > >> Surely someone out there knows how to notify their >> Windows users that access to their samba server is >> going to be terminated.... >> >> Any help will be *greatly* appreciated. >> >> ------ Original Message ------- >> I would like to shut down samba before I begin my >> backup routine. Before I do this, I would like to >> send a message to the users who are logged in on their >> Windows machines, asking them to log out. I would >> prefer this to be like a ShowMessage dialog box, if >> possible. >> >> Could anyone please tell me how I can do this? A >> Redhat tech support specialist told me he thinks this >> is possible through samba or smb-client.I wrote the following script some time ago to message all connected clients thru "smbclient -M" . I did some comments and clean-up today and hope this did not break anything. You should get the idea. The windows-messageing service (don't know the right translation in the german W2K it's called "Nachrichtendienst") has to be active on the clients. It's active by default in Windows 2000 and I think in XP too. Hope this helps Martin -------- cut #!/bin/bash # Header above the message infoline="** Nachrichtendienst des xxxx-Netzes **" # Name of Sender sender="System/xxx" # location of the executeables smbstatusexe=`which smbstatus` smbclientexe=`which smbclient` # take the brief output from smbstatus, extract the 3rd column # (the client name) and save all names in reverse order clients=`$smbstatusexe -b|tr -s " " ";"|cut -d";" -f3|tac` if [ $# -lt 1 ] then echo "Usage: $0 Message" echo "Will send the message to all MS-Windows clients having an active" echo "connection to this Samba-host. At the moment these are:" for i in $clients do # test for last line (the "--------" line) if [ `expr "$i" : '-*'` -ne 0 ] then break fi echo -n "$i " done echo " " exit 2 fi for i in $clients do if [ `expr "$i" : '-*'` -ne 0 ] then break fi echo -n "Sending Message to Host $i - " # send the message, "number of bytes send" is grepped to show # fail/success echo -e "$infoline\n$*" | $smbclientexe -U $sender -M $i | grep sent done --- Dipl.-Ing. Martin THOMAS University of Kaiserslautern, Institute of Environmental Engineering, Kaiserslautern (D-67663), Germany
This could help.. [root@]# smbclient -M PC_name added interface ip=129.xxx.xxx.xxx bcast=129.xxx.xxx.255 nmask=255.255.248.0 Got a positive name query response from PC_name_IP ( PC_Name_IP) Connected. Type your message, ending it with a Control-D This will only work with WIn2K/NT workstations due to Messenger service being Run automatically. YOu need winpopup for Win 98. Else you could also try echo "MEssage" | smbclient -M PC_Name Hope this help all those concerned. PS: someone just needs to write a script to grep the users (from smbstatus output, 1st column) and then send the message. Seems like a good idea to me. I'll toy with it see if I can get anywhere. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -----Original Message----- From: Ifan Jones [mailto:ifan@draig.co.uk] Sent: Wednesday, May 21, 2003 4:16 PM To: samba@lists.samba.org Subject: RE: [Samba] ShowMessage (second attempt) I'll second this request - I can't find any mention of this anywhere! -----Original Message----- From: Nicholas Metsovon [mailto:nmetsovo@yahoo.com] Sent: 20 May 2003 16:45 To: samba@lists.samba.org Subject: [Samba] ShowMessage (second attempt) Surely someone out there knows how to notify their Windows users that access to their samba server is going to be terminated.... Any help will be *greatly* appreciated. ------ Original Message ------- I would like to shut down samba before I begin my backup routine. Before I do this, I would like to send a message to the users who are logged in on their Windows machines, asking them to log out. I would prefer this to be like a ShowMessage dialog box, if possible. Could anyone please tell me how I can do this? A Redhat tech support specialist told me he thinks this is possible through samba or smb-client. __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba