I just discovered something; if I use the shutdown gui in Windows XP,
the remote shutdown works. I'm not sure what's different between doing a
remote shutdown with the gui and from a command line, but as I need it
to work from a command line, does this help anyone come up with an idea?
I'm out of them right now.
Thanks again!
Tom
Tom wrote:
I have checked this and it does look correct:
---------- smb.conf -------------
shutdown script = /etc/samba/shutdown.sh %z %t %r %f
abort shutdown script = /sbin/shutdown -c
---------------------------------
--------- shutdown.sh -----------
#!/bin/bash
/sbin/shutdown $3 $4 $2 $1 &
---------------------------------
If a more detailed log file would help I can get it for the list; but as
of right now, all I get in the log file is the following:
[2006/11/08 17:32:57, 0] lib/fault.c:fault_report(41)
===============================================================
[2006/11/08 17:32:57, 0] lib/fault.c:fault_report(42)
INTERNAL ERROR: Signal 11 in pid 3859 (3.0.23c)
Please read the Trouble-Shooting section of the Samba3-HOWTO
[2006/11/08 17:32:57, 0] lib/fault.c:fault_report(44)
From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2006/11/08 17:32:57, 0] lib/fault.c:fault_report(45)
===============================================================
[2006/11/08 17:32:57, 0] lib/util.c:smb_panic(1592)
PANIC (pid 3859): internal error
[2006/11/08 17:32:57, 0] lib/util.c:log_stack_trace(1699)
BACKTRACE: 17 stack frames:
#0 /usr/sbin/smbd(log_stack_trace+0x2e) [0x802166ce]
#1 /usr/sbin/smbd(smb_panic+0x57) [0x802167e7]
#2 /usr/sbin/smbd [0x80201f6f]
#3 /lib/libc.so.6 [0x40248db8]
#4 /usr/sbin/smbd [0x80103eba]
#5 /usr/sbin/smbd(api_rpcTNP+0x280) [0x8015e710]
#6 /usr/sbin/smbd(api_pipe_request+0xd0) [0x8015eba0]
#7 /usr/sbin/smbd [0x8015a5cc]
#8 /usr/sbin/smbd(write_to_pipe+0xf7) [0x80158df7]
#9 /usr/sbin/smbd [0x8005c259]
#10 /usr/sbin/smbd [0x8005c716]
#11 /usr/sbin/smbd(reply_trans+0x673) [0x8005d083]
#12 /usr/sbin/smbd [0x800b0b6e]
#13 /usr/sbin/smbd(smbd_process+0x7cb) [0x800b213b]
#14 /usr/sbin/smbd(main+0x100a) [0x802ad2fa]
#15 /lib/libc.so.6(__libc_start_main+0xb9) [0x40235469]
#16 /usr/sbin/smbd [0x8003ffe1]
------------------------------------------------------------
Thanks,
Tom
------------------------------------------------------------------------
Subject:
Re: [Samba] Trouble doing a remote shutdown of a linux machine through
samba
From:
Adam Tauno Williams <[EMAIL PROTECTED]>
Date:
Wed, 08 Nov 2006 06:42:08 -0500
To:
[email protected]
To:
[email protected]
Content-Transfer-Encoding:
7bit
Precedence:
list
References:
<[EMAIL PROTECTED]>
In-Reply-To:
<[EMAIL PROTECTED]>
Reply-To:
[EMAIL PROTECTED]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type:
text/plain
MIME-Version:
1.0
Message:
30
On Tue, 2006-11-07 at 22:30 -0500, Tom wrote:
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:
Have you set the "shutdown script" and "abort shutdown script"
directives in your Samba configuration?
abort shutdown script = /sbin/shutdown -c
shutdown script = shutdown script = /etc/samba/shutdown.sh %z %t %r %f
cat /etc/samba/shutdown.sh
---<clip>----
#!/bin/bash
# %z - Message = $1
# %t - Seconds before shutdown starts = $2
# %r - Reboot switch (-r) = $3
# %f - Force switch (-f) = $4
$time=$2
let "time=time/60"
let "time++"
/sbin/shutdown $3 $4 +$time $1 &
---</clip>----
This is all in the smb.conf manual page.
------------------------------------------------------------------------
_______________________________________________
samba mailing list
[email protected]
https://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba