Bug#270586: marked as done (thttpd: VFAT disk partitions are not allowed in var "dir" (thttpd.conf))
Your message dated Sun, 16 Aug 2009 15:00:53 +0200
with message-id <20090816130053.GC32379@aegir.asgard.sol>
and subject line close #270586 VFAT disk partitions are not allowed
has caused the Debian Bug report #270586,
regarding thttpd: VFAT disk partitions are not allowed in var "dir" (thttpd.conf)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)
--
270586: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=270586
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: thttpd: VFAT disk partitions are not allowed in var "dir" (thttpd.conf)
- From: Jari Aalto <jari.aalto@poboxes.com>
- Date: Wed, 08 Sep 2004 09:59:30 +0300
- Message-id: <E1C4wQU-0005Vj-5J@bongo.cante.net>
Package: thttpd
Severity: important
In dual boot system, like Win/Linux, there is data in VFAT (fat32)
partitions. If the "dir" is pointed to mounted vfat partition's
directory, the program is unable to serve files.
$ mount -t vfat /dev/hdf6 /mnt/local/hd/f6
And in configuration file /etc/thttpd.conf:
port=81
dir=/mnt/local/hd/f6
Connection:
$ lynx http://localhost:81/
Alert!: HTTP/1.0 500 Internal Error
500 Internal Error
There was an unusual problem serving the requested URL '/'.
_________________________________________________________________
thttpd/2.23beta1 26may2002
The /var/log/thttpd.log does not give further information:
127.0.0.1 - - [08/Sep/2004:09:57:33 +0300] "GET / HTTP/1.0" 500 0 "" "Lynx/2.8.5rel.1 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/0.8.12"
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.26-1-386
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to en_US)
--- End Message ---
--- Begin Message ---
I reproduced your problem (on a newer version): the reason for this
error was that thttpd expects ordinary files to be non executable (see
manpage!). When mounting FAT/VFAT files get the executable permission
by default. With the right mount options everything works as expected:
% mount /dev/sda4 /mnt/windows -o ro,fmask=7333
% thttpd -p 8888 -d /mnt/windows -D -l /dev/stdout
other shell:
% wget -O /dev/null http://localhost:8888/windows/system32/cmd.exe
--2009-08-16 14:52:04-- http://localhost:8888/windows/system32/cmd.exe
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8888... connected.
HTTP request sent, awaiting response... 200 OK
Length: 389120 (380K) [application/octet-stream]
--- End Message ---
Reply to: