rpcclient / remote shutdown doesn't work
Peter Conrad
conrad at opus5.de
Tue May 2 09:22:55 GMT 2000
Hi,
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=192.168.32.2 bcast=192.168.32.255 nmask=255.255.255.0
Enter Password:
Server: \\EASTWOOD: User: administrator Domain:
Connection: error connecting to 192.168.32.21:445 (Connection refused)
session setup ok
Domain=[OPUS_5] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
OK
[administrator at EASTWOOD]$ shutdown -m test -t 300
shutdown -m test -t 300
Failed
[administrator at EASTWOOD]$
So what am I doing wrong? What's that port 445 it's trying to connect
to on the server?
Thanks,
Peter
--
Peter Conrad Tel.: +49-6103-5853-0
opus 5 interaktive medien gmbh Fax : +49-6103-5853-200
Frankfurter Str. 151
63303 Dreieich-Sprendlingen
Germany
More information about the samba-ntdom
mailing list