jon_monroe@imagebuilder.com wrote:>
> Hey all,
>
> I was wondering if a tool existed in samba to remotely shutdown NT/2K
servers --
> something like the shutdown.exe program included w/ the NT4 resource kit?
I
> apologize if this has been answered someplace else -- I've looked
through the
> message archive, and scanned the source. But, I didn't see anything
like this.
> It could be useful, and seems like it wouldn't be too hard to implement
using
> the existing samba/smb libraries?
Yep, thats been done.
Grap rpcclient from the HEAD branch, and there is a 'shutdown' command
you can execute on the remote server. Samba can also shut its machine
down with the same code (ie in the same way an NT4 box is shut down)
once some smb.conf options are set (in HEAD only).
You can thank Simo Sorce <idra@samba.org> for this neat little bit of
functionality.
Andrew Bartlett
--
Andrew Bartlett abartlet@pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet@samba.org
Student Network Administrator, Hawker College abartlet@hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net