Shutdown NT server w/ samba client?
abartlet at pcug.org.au
Mon Nov 19 13:01:05 GMT 2001
jon_monroe at 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 at samba.org> for this neat little bit of
Andrew Bartlett abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet at samba.org
Student Network Administrator, Hawker College abartlet at hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net
More information about the samba