[Samba] Trouble doing a remote shutdown of a linux machine through samba

Tom savagephp at gmail.com
Wed Nov 8 03:30:05 GMT 2006


Is it possible to shutdown a Linux computer through Samba using the 
shutdown command in Windows XP and 2003? I've tried:

shutdown /r /m hostname

This doesn't work and results in Windows reporting "The remote procedure 
call failed.' in the command window. The Samba log shows the following:

------------ CLIP ---------------------------------------------------

[2006/11/07 22:20:05, 0] lib/fault.c:fault_report(36)
   ===============================================================
[2006/11/07 22:20:05, 0] lib/fault.c:fault_report(37)
   INTERNAL ERROR: Signal 11 in pid 12602 (3.0.21b)
   Please read the Trouble-Shooting section of the Samba3-HOWTO
[2006/11/07 22:20:05, 0] lib/fault.c:fault_report(39)

   From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2006/11/07 22:20:05, 0] lib/fault.c:fault_report(40)
   ===============================================================
[2006/11/07 22:20:05, 0] lib/util.c:smb_panic2(1554)
   PANIC: internal error
[2006/11/07 22:20:05, 0] lib/util.c:smb_panic2(1562)
   BACKTRACE: 17 stack frames:
    #0 /usr/sbin/smbd(smb_panic2+0x8c) [0x801f6bdc]
    #1 /usr/sbin/smbd(smb_panic+0x1a) [0x801f6e0a]
    #2 /usr/sbin/smbd [0x801e0d77]
    #3 /lib/libc.so.6 [0x4023b988]
    #4 /usr/sbin/smbd [0x800f58ba]
    #5 /usr/sbin/smbd(api_rpcTNP+0x280) [0x8014c020]
    #6 /usr/sbin/smbd(api_pipe_request+0xd0) [0x8014c4b0]
    #7 /usr/sbin/smbd [0x801480dc]
    #8 /usr/sbin/smbd(write_to_pipe+0xf7) [0x80146907]
    #9 /usr/sbin/smbd [0x80053696]
    #10 /usr/sbin/smbd(reply_trans+0xac3) [0x800543f3]
    #11 /usr/sbin/smbd [0x800a6dc1]
    #12 /usr/sbin/smbd(process_smb+0x19e) [0x800a71ee]
    #13 /usr/sbin/smbd(smbd_process+0x159) [0x800a81e9]
    #14 /usr/sbin/smbd(main+0x949) [0x80284139]
    #15 /lib/libc.so.6(__libc_start_main+0xc6) [0x40227d06]
    #16 /usr/sbin/smbd [0x8003b9d1]

-------------- END CLIP ---------------------------------------------

I'm using Samba 3.0.21b on a Slackware 9.1 install. I've also tried 
using this command to shutdown/restart a Samba 3.0.23c server running on 
Slackware 10.1 with the same results.

Any suggestions would be greatly appreciated. Does Samba allow for this 
at all?

Regards,

Tom



More information about the samba mailing list