[Samba] Net rpc shutdown

Mark Lidstone mlidstone at bmtseatech.co.uk
Tue Aug 10 15:52:14 GMT 2004


Hi all,

I'm trying to make a script that will shut down a couple of Windows
boxes from a Linux machine with Samba.

If I use "net rpc shutdown -I <windows-ip> -U administrator" it works
fine, except that I get prompted for the password.  After looking
through "man net" I can't seem to find a way to include the password (I
tried "-U administrator%password" but got "[2004/08/10 16:45:58, 0]
utils/net_rpc.c:rpc_shutdown_internals(2766) - Shutdown of remote
machine failed" back).

Am I missing a switch?

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