rpcclient / remote shutdown doesn't work

Peter Conrad conrad at opus5.de
Tue May 2 09:22:55 GMT 2000


I'm trying to remotely shut down an NT server from a linux box. I've
seen the rpcclient command mentioned in the archives, and its

shutdown -m [message] -t [timeout] ...

statement. I have retrieved and compiled the latest TNG version
from the CVS repository. My system is a SUSE linux with libc5.
I can start rpcclient and connect to the NT server as administrator.
I can issue simple commands like 'enumusers' and they work.
Other commands like 'shutdown' or 'at' don't.

conrad at tarantino > ./bin/rpcclient -S eastwood -U administrator
added interface ip= bcast= nmask=
Enter Password:
Server: \\EASTWOOD:     User:   administrator   Domain:
Connection: error connecting to (Connection refused)
session setup ok
Domain=[OPUS_5] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
[administrator at EASTWOOD]$ shutdown -m test -t 300
shutdown -m test -t 300

[administrator at EASTWOOD]$

So what am I doing wrong? What's that port 445 it's trying to connect
to on the server?

Peter Conrad                                    Tel.: +49-6103-5853-0
opus 5 interaktive medien gmbh                  Fax : +49-6103-5853-200
Frankfurter Str. 151
63303 Dreieich-Sprendlingen


More information about the samba-ntdom mailing list