[Samba] Need help with strange use of "message command" - just ignore if this is OT

Mark Lidstone mlidstone at bmtseatech.co.uk
Mon Aug 9 12:22:13 GMT 2004


Hi all,

I've got a setup with a single UPS serving three servers.  The main
server is a Windows box and there is also a Linux mail server.

The UPS is a APC SmartUPS connected to the main Windows box.

The software we're using on the Windows machine will not shut down the
Linux box when there's a power outage.  Not a problem as all the clients
would already be disconnected and I'm sure EXT3 can handle itself, but
I'd much rather that the Linux box would shut itself down nicely.

I can run standard Windows commands when the UPS turns off and thought
I'd try and use "net send" to send a message to the Linux box, catch it
with "message command" in smb.conf and do a nice shutdown.

However, the "message command" is run as an unprivileged user (as it
should be) and so doesn't have the rights to shutdown the machine.

Can anyone suggest something I could try other than wading through the
code?  I'm not a software engineer by any stretch of the imagination.

Many thanks for any help, and sorry if you consider this to be off
topic.

Mark Lidstone
IT and Network Support Administrator

BMT SeaTech Ltd
Grove House, Meridians Cross, 7 Ocean Way
Ocean Village, Southampton.  SO14 3TJ. UK
Tel: +44 (0)23 8063 5122         
Fax: +44 (0)23 8063 5144

E-Mail:  mailto:mark.lidstone at bmtseatech.co.uk
Website: www.bmtseatech.co.uk
========================================================================
==
Confidentiality Notice and Disclaimer: 
The contents of this e-mail and any attachments are intended only for
the
use of the e-mail addressee(s) shown. If you are not that person, or one
of those persons, you are not allowed to take any action based upon it
or
to copy it, forward, distribute or disclose the contents of it and you
should please delete it from your system. BMT SeaTech Limited does not
accept liability for any errors or omissions in the context of this
e-mail
or its attachments which arise as a result of Internet transmission, nor
accept liability for statements which are those of the author and not
clearly made on behalf of BMT SeaTech Limited.
========================================================================
==
  


More information about the samba mailing list