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.
Example: /usr/local/samba/sbin/shutdown %m %t %r %f
Registry Hive | HKEY_LOCAL_MACHINE |
Registry Path | Software\Policies\Samba\smb_conf\shutdown script |
Value Name | shutdown script |
Value Type | REG_SZ |
Default Value |