From d3c3ad9a128f020c2787716aee183526ca152448 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 3 May 2005 10:22:56 +0000 Subject: adding feedback. (This used to be commit 0a9ff0144cccf414c15b67d5a576679fef6055ee) --- .../TOSHARG-AdvancedNetworkAdmin.xml | 49 ++++++++++++++++++++++ docs/Samba-HOWTO-Collection/TOSHARG-Bugs.xml | 22 ++++++++++ 2 files changed, 71 insertions(+) diff --git a/docs/Samba-HOWTO-Collection/TOSHARG-AdvancedNetworkAdmin.xml b/docs/Samba-HOWTO-Collection/TOSHARG-AdvancedNetworkAdmin.xml index 72892f3806..37df6fecc9 100644 --- a/docs/Samba-HOWTO-Collection/TOSHARG-AdvancedNetworkAdmin.xml +++ b/docs/Samba-HOWTO-Collection/TOSHARG-AdvancedNetworkAdmin.xml @@ -347,6 +347,55 @@ See the documentation in the : + +[myshare] + ... + preexec script = /sbin/PermitSingleLogon.sh + preexec close = Yes + ... + + + + + Script to Enforce Single Resource Logon + +#!/bin/bash + +IFS="-" +RESULT=$(smbstatus -S -u $1 2> /dev/null | awk 'NF > 6 {print $1}' | sort | uniq -d) + +if [ "X${RESULT}" == X ]; then + exit 0 +else + exit 1 +fi + + + diff --git a/docs/Samba-HOWTO-Collection/TOSHARG-Bugs.xml b/docs/Samba-HOWTO-Collection/TOSHARG-Bugs.xml index ae4354f5d6..2bd14a681d 100644 --- a/docs/Samba-HOWTO-Collection/TOSHARG-Bugs.xml +++ b/docs/Samba-HOWTO-Collection/TOSHARG-Bugs.xml @@ -235,6 +235,28 @@ using the client. The debugger should catch the fault and tell you where it occurred. + +Sometimes it is necessary to build a Samba binary files that have debugging +symbols so as to make it possible to capture enough information from a crashed +operation to permit the Samba Team to fix the problem. + + + +Compile with -g to ensure you have symbols in place. +Add the following line to the &smb.conf; file global section: + +panic action = "/bin/sleep 90000" + +to catch any panics. If smbd seems to be frozen look for any sleep +processes. If it is not, and appears to be spinning, find the process id +of the spinning process and type: + +gdb /usr/local/samba/sbin/smbd + +then attach 'pid' (of the spinning process), then type bt to +get a backtrace to see where the smbd is in the call path. + + -- cgit