Package: tcpspy
Version: 1.7d-3.1

/etc/init.d/tcpspy runs start-stop-daemon with '--chuid nobody', which
makes it impossible to use the '-p' option of tcpspy to log process
filenames.

this is unneccessary because tcpspy already has the ability to set uid
and gid with the -U and -G options.

a fix would be to:

1. change /etc/init.d/tcpspy so that tcpspy is started like this:

    CMDLINE="start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- 
$OPTIONS -f $RULESFILE"

instead of this:

    CMDLINE="start-stop-daemon --start --quiet --chuid nobody --oknodo --exec 
$DAEMON -- $OPTIONS -f $RULESFILE"

(two occurences of this, under 'start' and 'restart')


2. change /etc/default/tcpspy to this:

---cut here---
# Default commandline options for tcpspy. This file is sourced by /bin/sh from
# /etc/init.d/tcpspy. For more info on commandline options see tcpspy.8

# which rules file to use.  leave commented out for default:
#RULESFILE=/etc/tcpspy.rules

# run as 'nobody' and 'nogroup' by default.
OPTIONS="-U nobody -G nogroup"

# NOTE: tcpspy must run as root if you want to use tcpspy's '-p'
# option to log process filenames.  comment out the above OPTIONS
# line and uncomment the below.
#
#OPTIONS="-p"
---cut here---


craig

-- 
craig sanders <[EMAIL PROTECTED]>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to