[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#665285: chroot is enabled per default but this makes thttpd not know the timezone



Package: thttpd
Version: 2.25b-11
Severity: normal

since timezone data is not included in the directory thttpd chroots to, the timezone
will always be UTC when thttpd is run system wide. this effects logging and
directory index views and the reason for this is non-obvious to a new user.

suggestion: dont make chroot the default in /etc/thttpd/thttpd.conf OR
make a chroot directory for thttpd to use that includes /etc/timezone in some way


-- System Information:
Debian Release: 6.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=sv_SE.utf8, LC_CTYPE=sv_SE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages thttpd depends on:
ii  libc6                         2.11.3-2   Embedded GNU C Library: Shared lib

Versions of packages thttpd recommends:
ii  logrotate                     3.7.8-6    Log rotation utility

Versions of packages thttpd suggests:
pn  thttpd-util                   <none>     (no description available)

-- Configuration Files:
/etc/default/thttpd changed:
ENABLED=yes

/etc/init.d/thttpd changed:
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/thttpd
DESC="web server"
NAME=thttpd
DEFAULTS=/etc/default/thttpd
CONFFILE=/etc/thttpd/thttpd.conf
PIDFILE=/var/run/thttpd.pid
OPTIONS="-C $CONFFILE -i $PIDFILE"
test -x $DAEMON || exit 0
test -f $CONFFILE || exit 1
if [ -s $DEFAULTS ]; then
    . $DEFAULTS
    if [ "x$ENABLED" != "xyes" ]; then
        exit 0
    fi
fi
set -e
case "$1" in
	start)
		echo -n "Starting $DESC: "
		start-stop-daemon -S -q -p $PIDFILE -x $DAEMON --oknodo -- $OPTIONS
		echo "$NAME."
		;;
	stop)
		echo -n "Stopping $DESC: "
		start-stop-daemon -K -q -p $PIDFILE -x $DAEMON --oknodo --signal 10
		echo "$NAME."
		;;
	force-stop)
		echo -n "Stopping $DESC: "
		start-stop-daemon -K -q -p $PIDFILE -x $DAEMON
		echo "$NAME."
		;;
	force-reload)
		if start-stop-daemon -K -q -p $PIDFILE -x $DAEMON --test
		then
			$0 restart
		fi
		;;
	restart)
		$0 stop
		sleep 1
		$0 start
		;;
	*)
		N=/etc/init.d/$NAME
		echo "Usage: $N {start|stop|force-stop|restart|force-reload}" >&2
		exit 1
		;;
esac
exit 0

/etc/thttpd/thttpd.conf changed:
port=80
dir=/var/www
chroot
user=www-data
cgipat=/cgi-bin/*
throttles=/etc/thttpd/throttle.conf
logfile=/var/log/thttpd.log
charset=utf-8


-- no debconf information



Reply to: