[Samba] Message Command
mkh01 at earthlink.net
Fri Jan 10 13:20:01 GMT 2003
On Fri, Jan 10, 2003 at 10:54:49PM +1100, David Andrew Patterson wrote:
> First, my question:- Does Samba do anything in particular with the standard
> output of the program specified here? What would it take to have it
> WinPopUp-ed back to the sender of the message?
Have your message command run smbclient to send a winpopup back.
> I'm presently working on a program** to enable simple commands of some kind
> to be WinPopUp-ed to a Linux box and acted on or responded to in some way.
> For example, rather than having to telnet to my Linux box, log in, enter
> "ifup ppp0" to dial into my ISP and then something else to activate my
> masquerading, I think it would be rather nice if I could simply WinPopUp a
> simple command such as "DIAL_IN" and then get a nice, user-friendly
> response such as "Your Internet connection is now active" popped back to me
> upon successful completion.
One problem you're going to face is that the message command gets run as
the guest account (defaults to "nobody"). In order to run something like
ifup you're going to have to either use a setuid executable (which
raises all sorts of potential security issues) or set your guest account
to something privileged like root (which raises even bigger security
More information about the samba