I ran the script under root user and it did not work. Here is what it is.
[rpi-s-Computer:~] root# cd ~ ; curl
http://www.biermann.org/philipp/OSX/instsmbpopup.sh -o instsmbpopup.sh ; sh instsmbpopup.sh
% Total % Received % Xferd Average Speed Time Curr.
Dload Upload Total Current Left Speed
100 3629 100 3629 0 0 8143 0 0:00:00 0:00:00 0:00:00 2458
This script will modify /etc/smb.conf and add the possibility to receive smb messages like from net send
It will also install a script in /usr/local/bin/smbpopup
Also it will download and install and set the suid bit on a software called alert which goes to /usr/sbin
This script checks for some possible problems, but usage is at your own risk!
mail comments to osx AT biermann.org
Ready to continue ? (Y)
Y
found section [global] at times: 1 in /etc/smb.conf
found section [global] at line: 27 in /etc/smb.conf
removing current lines of "message command" directives, if any
number of lines in original smb.conf: 52
number of lines from insertion point to end: 25
done modifications, do you whish to write the new /etc/smb.conf Y/N?
Y
please authenticate with your password!
admin
orginal /etc/smb.conf saved as /etc/smb.conf.bak
finished, please restart windows sharing
about to write /usr/local/bin/smbpopup ...
mkdir: /usr/local: File exists
mkdir: /usr/local/bin: File exists
please ignore any error message above.
done !
checking for /usr/sbin/alert ...
checking again for /usr/sbin/alert ...
looks like the program is there
setting correct permissions...type your password in case asked!
all done!
[rpi-s-Computer:~] root# echo "my Message" | smbclient -M 202.180.22.89
added interface ip=202.180.22.75 bcast=202.180.22.255 nmask=255.255.255.0
session request failed