1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
1
2
|
-
-
-
-
+
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|
<H1>FILED</H1>
Section: User Commands (1)<BR>Updated: 06 Feb 14<BR><A HREF="#index">Index</A>
<HR>
<H1>File not found</H1>
<A NAME="lbAB"> </A>
<H2>NAME</H2>
Could not open filed.1
filed - serve files over HTTP
<A NAME="lbAC"> </A>
<H2>SYNOPSIS</H2>
<B>filed</B>
[{<B>-h</B>|<B>--help</B>}]
[{<B>-b</B>|<B>--bind</B>}
<I>address</I>]
[{<B>-p</B>|<B>--port</B>}
<I>port</I>]
[{<B>-t</B>|<B>--threads</B>}
<I>count</I>]
[{<B>-c</B>|<B>--cache</B>}
<I>entries</I>]
[{<B>-u</B>|<B>--user</B>}
<I>user</I>]
[{<B>-r</B>|<B>--root</B>}
<I>directory</I>]
<P>
<A NAME="lbAD"> </A>
<H2>DESCRIPTION</H2>
<I>FILED</I>
serves files over HTTP as minimally as possible. Only static files (i.e., files that never change or are replaced) are supported.
<P>
<A NAME="lbAE"> </A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT><B>-h (or --help)</B>
<DD>
Prints detailed usage information
<P>
<DT><B>-b (or --bind)</B>
<DD>
Specifies the address to listen for incoming HTTP
requests on.
<P>
<DT><B>-p (or --port)</B>
<DD>
Specifies the TCP port number to listen for incoming HTTP
requests on.
<P>
<DT><B>-t (or --threads)</B>
<DD>
Specifies the number of worker threads to create. Each
worker thread can service one concurrent HTTP session.
Thus the number of threads created will determine how
many simultaneous transfers will be possible.
<P>
<DT><B>-c (or --cache)</B>
<DD>
Specifies the number of file information cache entries
to allocate. Each cache entry holds file information as
well as an open file descriptor to the file, so resource
limits (i.e., ulimit) should be considered. This should
be a prime number for ideal use with the lookup method.
<P>
<DT><B>-u (or --user)</B>
<DD>
Specifies the user to switch user IDs to before servicing
requests. The default is not change user IDs.
<P>
<DT><B>-r (or --root)</B>
<DD>
Specifies the directory to act as the root directory for
the file server. If this option is specified, <A HREF="../man2/chroot.2.html">chroot</A>(2)
is called. The default is not change root directories,
that is, the "/" directory is shared out. This will
likely be a security issue, so this option should always
be used.
<P>
</DL>
<A NAME="lbAF"> </A>
<H2>AUTHOR</H2>
Roy Keene
<I><<A HREF="mailto:filed@rkeene.org">filed@rkeene.org</A>></I>
<P>
<HR>
<A NAME="index"> </A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">OPTIONS</A><DD>
<DT><A HREF="#lbAF">AUTHOR</A><DD>
</DL>
|