From 4f5791ebd03eaec1c7da0865a383175b05102712 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 19:47:29 +0200 Subject: Adding upstream version 2:4.17.12+dfsg. Signed-off-by: Daniel Baumann --- docs-xml/smbdotconf/logon/shutdownscript.xml | 61 ++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 docs-xml/smbdotconf/logon/shutdownscript.xml (limited to 'docs-xml/smbdotconf/logon/shutdownscript.xml') diff --git a/docs-xml/smbdotconf/logon/shutdownscript.xml b/docs-xml/smbdotconf/logon/shutdownscript.xml new file mode 100644 index 0000000..ea5b65f --- /dev/null +++ b/docs-xml/smbdotconf/logon/shutdownscript.xml @@ -0,0 +1,61 @@ + + + This a full path name to a script called by + smbd + 8 that should + start a shutdown procedure. + + If the connected user possesses the SeRemoteShutdownPrivilege, + right, this command will be run as root. + + The %z %t %r %f variables are expanded as follows: + + + + %z will be substituted with the + shutdown message sent to the server. + + + + %t will be substituted with the + number of seconds to wait before effectively starting the + shutdown procedure. + + + + %r will be substituted with the + switch -r. It means reboot after shutdown + for NT. + + + + %f will be substituted with the + switch -f. It means force the shutdown + even if applications do not respond for NT. + + + + Shutdown script example: + +#!/bin/bash + +time=$2 +let time="${time} / 60" +let time="${time} + 1" + +/sbin/shutdown $3 $4 +$time $1 & + + + Shutdown does not return so we need to launch it in background. + + + +abort shutdown script + +/usr/local/samba/sbin/shutdown %m %t %r %f + + -- cgit v1.2.3