In "shutdown script" section in smb.conf(5): An example script is offerred: ----- #!/bin/bash $time=0 let "time/60" let "time++" /sbin/shutdown $3 $4 +$time $1 & ----- This should be : ----- #!/bin/bash time=$2 let time="${time} / 60" let time="${time} + 1" /sbin/shutdown $3 $4 +$time $1 & ----- I tested this script on Debian/GNU Linux 4.0 (etch)
Fix will be included in Samba 3.2.12 and 3.3.5. Thanks for reporting!