xref: /freebsd/crypto/heimdal/appl/ftp/ftpd/ftpd.8 (revision b528cefc6b8f9670b31a865051741d946cb37085)
1b528cefcSMark Murray.\"	$NetBSD: ftpd.8,v 1.7 1995/04/11 02:44:53 cgd Exp $
2b528cefcSMark Murray.\"
3b528cefcSMark Murray.\" Copyright (c) 1985, 1988, 1991, 1993
4b528cefcSMark Murray.\"	The Regents of the University of California.  All rights reserved.
5b528cefcSMark Murray.\"
6b528cefcSMark Murray.\" Redistribution and use in source and binary forms, with or without
7b528cefcSMark Murray.\" modification, are permitted provided that the following conditions
8b528cefcSMark Murray.\" are met:
9b528cefcSMark Murray.\" 1. Redistributions of source code must retain the above copyright
10b528cefcSMark Murray.\"    notice, this list of conditions and the following disclaimer.
11b528cefcSMark Murray.\" 2. Redistributions in binary form must reproduce the above copyright
12b528cefcSMark Murray.\"    notice, this list of conditions and the following disclaimer in the
13b528cefcSMark Murray.\"    documentation and/or other materials provided with the distribution.
14b528cefcSMark Murray.\" 3. All advertising materials mentioning features or use of this software
15b528cefcSMark Murray.\"    must display the following acknowledgement:
16b528cefcSMark Murray.\"	This product includes software developed by the University of
17b528cefcSMark Murray.\"	California, Berkeley and its contributors.
18b528cefcSMark Murray.\" 4. Neither the name of the University nor the names of its contributors
19b528cefcSMark Murray.\"    may be used to endorse or promote products derived from this software
20b528cefcSMark Murray.\"    without specific prior written permission.
21b528cefcSMark Murray.\"
22b528cefcSMark Murray.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23b528cefcSMark Murray.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24b528cefcSMark Murray.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25b528cefcSMark Murray.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26b528cefcSMark Murray.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27b528cefcSMark Murray.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28b528cefcSMark Murray.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29b528cefcSMark Murray.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30b528cefcSMark Murray.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31b528cefcSMark Murray.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32b528cefcSMark Murray.\" SUCH DAMAGE.
33b528cefcSMark Murray.\"
34b528cefcSMark Murray.\"     @(#)ftpd.8	8.2 (Berkeley) 4/19/94
35b528cefcSMark Murray.\"
36b528cefcSMark Murray.Dd April 19, 1997
37b528cefcSMark Murray.Dt FTPD 8
38b528cefcSMark Murray.Os BSD 4.2
39b528cefcSMark Murray.Sh NAME
40b528cefcSMark Murray.Nm ftpd
41b528cefcSMark Murray.Nd
42b528cefcSMark MurrayInternet File Transfer Protocol server
43b528cefcSMark Murray.Sh SYNOPSIS
44b528cefcSMark Murray.Nm ftpd
45b528cefcSMark Murray.Op Fl a Ar authmode
46b528cefcSMark Murray.Op Fl dilv
47b528cefcSMark Murray.Op Fl g Ar umask
48b528cefcSMark Murray.Op Fl p Ar port
49b528cefcSMark Murray.Op Fl T Ar maxtimeout
50b528cefcSMark Murray.Op Fl t Ar timeout
51b528cefcSMark Murray.Op Fl u Ar default umask
52b528cefcSMark Murray.Sh DESCRIPTION
53b528cefcSMark Murray.Nm Ftpd
54b528cefcSMark Murrayis the
55b528cefcSMark MurrayInternet File Transfer Protocol
56b528cefcSMark Murrayserver process.  The server uses the
57b528cefcSMark Murray.Tn TCP
58b528cefcSMark Murrayprotocol
59b528cefcSMark Murrayand listens at the port specified in the
60b528cefcSMark Murray.Dq ftp
61b528cefcSMark Murrayservice specification; see
62b528cefcSMark Murray.Xr services 5 .
63b528cefcSMark Murray.Pp
64b528cefcSMark MurrayAvailable options:
65b528cefcSMark Murray.Bl -tag -width Ds
66b528cefcSMark Murray.It Fl a
67b528cefcSMark MurraySelect the level of authentication required.  Kerberised login can not
68b528cefcSMark Murraybe turned off. The default is to only allow kerberised login.  Other
69b528cefcSMark Murraypossibilities can be turned on by giving a string of comma separated
70b528cefcSMark Murrayflags as argument to
71b528cefcSMark Murray.Fl a .
72b528cefcSMark MurrayRecognised flags are:
73b528cefcSMark Murray.Bl -tag -width plain
74b528cefcSMark Murray.It Ar plain
75b528cefcSMark MurrayAllow logging in with plaintext password. The password can be a(n) OTP
76b528cefcSMark Murrayor an ordinary password.
77b528cefcSMark Murray.It Ar otp
78b528cefcSMark MurraySame as
79b528cefcSMark Murray.Ar plain ,
80b528cefcSMark Murraybut only OTP is allowed.
81b528cefcSMark Murray.It Ar ftp
82b528cefcSMark MurrayAllow anonymous login.
83b528cefcSMark Murray.El
84b528cefcSMark Murray
85b528cefcSMark MurrayThe following combination modes exists for backwards compatibility:
86b528cefcSMark Murray.Bl -tag -width plain
87b528cefcSMark Murray.It Ar none
88b528cefcSMark MurraySame as
89b528cefcSMark Murray.Ar plain,ftp .
90b528cefcSMark Murray.It Ar safe
91b528cefcSMark MurraySame as
92b528cefcSMark Murray.Ar ftp .
93b528cefcSMark Murray.It Ar user
94b528cefcSMark MurrayIgnored.
95b528cefcSMark Murray.El
96b528cefcSMark Murray.It Fl d
97b528cefcSMark MurrayDebugging information is written to the syslog using LOG_FTP.
98b528cefcSMark Murray.It Fl g
99b528cefcSMark MurrayAnonymous users will get a umask of
100b528cefcSMark Murray.Ar umask .
101b528cefcSMark Murray.It Fl i
102b528cefcSMark MurrayOpen a socket and wait for a connection. This is mainly used for
103b528cefcSMark Murraydebugging when ftpd isn't started by inetd.
104b528cefcSMark Murray.It Fl l
105b528cefcSMark MurrayEach successful and failed
106b528cefcSMark Murray.Xr ftp 1
107b528cefcSMark Murraysession is logged using syslog with a facility of LOG_FTP.
108b528cefcSMark MurrayIf this option is specified twice, the retrieve (get), store (put), append,
109b528cefcSMark Murraydelete, make directory, remove directory and rename operations and
110b528cefcSMark Murraytheir filename arguments are also logged.
111b528cefcSMark Murray.It Fl p
112b528cefcSMark MurrayUse
113b528cefcSMark Murray.Ar port
114b528cefcSMark Murray(a service name or number) instead of the default
115b528cefcSMark Murray.Ar ftp/tcp .
116b528cefcSMark Murray.It Fl T
117b528cefcSMark MurrayA client may also request a different timeout period;
118b528cefcSMark Murraythe maximum period allowed may be set to
119b528cefcSMark Murray.Ar timeout
120b528cefcSMark Murrayseconds with the
121b528cefcSMark Murray.Fl T
122b528cefcSMark Murrayoption.
123b528cefcSMark MurrayThe default limit is 2 hours.
124b528cefcSMark Murray.It Fl t
125b528cefcSMark MurrayThe inactivity timeout period is set to
126b528cefcSMark Murray.Ar timeout
127b528cefcSMark Murrayseconds (the default is 15 minutes).
128b528cefcSMark Murray.It Fl u
129b528cefcSMark MurraySet the initial umask to something else than the default 027.
130b528cefcSMark Murray.It Fl v
131b528cefcSMark MurrayVerbose mode.
132b528cefcSMark Murray.El
133b528cefcSMark Murray.Pp
134b528cefcSMark MurrayThe file
135b528cefcSMark Murray.Pa /etc/nologin
136b528cefcSMark Murraycan be used to disable ftp access.
137b528cefcSMark MurrayIf the file exists,
138b528cefcSMark Murray.Nm
139b528cefcSMark Murraydisplays it and exits.
140b528cefcSMark MurrayIf the file
141b528cefcSMark Murray.Pa /etc/ftpwelcome
142b528cefcSMark Murrayexists,
143b528cefcSMark Murray.Nm
144b528cefcSMark Murrayprints it before issuing the
145b528cefcSMark Murray.Dq ready
146b528cefcSMark Murraymessage.
147b528cefcSMark MurrayIf the file
148b528cefcSMark Murray.Pa /etc/motd
149b528cefcSMark Murrayexists,
150b528cefcSMark Murray.Nm
151b528cefcSMark Murrayprints it after a successful login.
152b528cefcSMark Murray.Pp
153b528cefcSMark MurrayThe ftp server currently supports the following ftp requests.
154b528cefcSMark MurrayThe case of the requests is ignored.
155b528cefcSMark Murray.Bl -column "Request" -offset indent
156b528cefcSMark Murray.It Request Ta "Description"
157b528cefcSMark Murray.It ABOR Ta "abort previous command"
158b528cefcSMark Murray.It ACCT Ta "specify account (ignored)"
159b528cefcSMark Murray.It ALLO Ta "allocate storage (vacuously)"
160b528cefcSMark Murray.It APPE Ta "append to a file"
161b528cefcSMark Murray.It CDUP Ta "change to parent of current working directory"
162b528cefcSMark Murray.It CWD Ta "change working directory"
163b528cefcSMark Murray.It DELE Ta "delete a file"
164b528cefcSMark Murray.It HELP Ta "give help information"
165b528cefcSMark Murray.It LIST Ta "give list files in a directory" Pq Dq Li "ls -lgA"
166b528cefcSMark Murray.It MKD Ta "make a directory"
167b528cefcSMark Murray.It MDTM Ta "show last modification time of file"
168b528cefcSMark Murray.It MODE Ta "specify data transfer" Em mode
169b528cefcSMark Murray.It NLST Ta "give name list of files in directory"
170b528cefcSMark Murray.It NOOP Ta "do nothing"
171b528cefcSMark Murray.It PASS Ta "specify password"
172b528cefcSMark Murray.It PASV Ta "prepare for server-to-server transfer"
173b528cefcSMark Murray.It PORT Ta "specify data connection port"
174b528cefcSMark Murray.It PWD Ta "print the current working directory"
175b528cefcSMark Murray.It QUIT Ta "terminate session"
176b528cefcSMark Murray.It REST Ta "restart incomplete transfer"
177b528cefcSMark Murray.It RETR Ta "retrieve a file"
178b528cefcSMark Murray.It RMD Ta "remove a directory"
179b528cefcSMark Murray.It RNFR Ta "specify rename-from file name"
180b528cefcSMark Murray.It RNTO Ta "specify rename-to file name"
181b528cefcSMark Murray.It SITE Ta "non-standard commands (see next section)"
182b528cefcSMark Murray.It SIZE Ta "return size of file"
183b528cefcSMark Murray.It STAT Ta "return status of server"
184b528cefcSMark Murray.It STOR Ta "store a file"
185b528cefcSMark Murray.It STOU Ta "store a file with a unique name"
186b528cefcSMark Murray.It STRU Ta "specify data transfer" Em structure
187b528cefcSMark Murray.It SYST Ta "show operating system type of server system"
188b528cefcSMark Murray.It TYPE Ta "specify data transfer" Em type
189b528cefcSMark Murray.It USER Ta "specify user name"
190b528cefcSMark Murray.It XCUP Ta "change to parent of current working directory (deprecated)"
191b528cefcSMark Murray.It XCWD Ta "change working directory (deprecated)"
192b528cefcSMark Murray.It XMKD Ta "make a directory (deprecated)"
193b528cefcSMark Murray.It XPWD Ta "print the current working directory (deprecated)"
194b528cefcSMark Murray.It XRMD Ta "remove a directory (deprecated)"
195b528cefcSMark Murray.El
196b528cefcSMark Murray.Pp
197b528cefcSMark MurrayThe following commands are specified by RFC2228.
198b528cefcSMark Murray.Bl -column Request -offset indent
199b528cefcSMark Murray.It AUTH Ta "authentication/security mechanism"
200b528cefcSMark Murray.It ADAT Ta "authentication/security data"
201b528cefcSMark Murray.It PROT Ta "data channel protection level"
202b528cefcSMark Murray.It PBSZ Ta "protection buffer size"
203b528cefcSMark Murray.It MIC Ta "integrity protected command"
204b528cefcSMark Murray.It CONF Ta "confidentiality protected command"
205b528cefcSMark Murray.It ENC Ta "privacy protected command"
206b528cefcSMark Murray.It CCC Ta "clear command channel"
207b528cefcSMark Murray.El
208b528cefcSMark Murray.Pp
209b528cefcSMark MurrayThe following non-standard or
210b528cefcSMark Murray.Tn UNIX
211b528cefcSMark Murrayspecific commands are supported
212b528cefcSMark Murrayby the
213b528cefcSMark MurraySITE request.
214b528cefcSMark Murray.Pp
215b528cefcSMark Murray.Bl -column Request -offset indent
216b528cefcSMark Murray.It UMASK Ta change umask, (e.g.
217b528cefcSMark Murray.Ic "SITE UMASK 002" )
218b528cefcSMark Murray.It IDLE Ta set idle-timer, (e.g.
219b528cefcSMark Murray.Ic "SITE IDLE 60" )
220b528cefcSMark Murray.It CHMOD Ta change mode of a file (e.g.
221b528cefcSMark Murray.Ic "SITE CHMOD 755 filename" )
222b528cefcSMark Murray.It FIND Ta quickly find a specific file with GNU
223b528cefcSMark Murray.Xr locate 1 .
224b528cefcSMark Murray.It HELP Ta give help information.
225b528cefcSMark Murray.El
226b528cefcSMark Murray.Pp
227b528cefcSMark MurrayThe following Kerberos related site commands are understood.
228b528cefcSMark Murray.Bl -column Request -offset indent
229b528cefcSMark Murray.It KAUTH Ta obtain remote tickets.
230b528cefcSMark Murray.It KLIST Ta show remote tickets
231b528cefcSMark Murray.El
232b528cefcSMark Murray.Pp
233b528cefcSMark MurrayThe remaining ftp requests specified in Internet RFC 959
234b528cefcSMark Murrayare
235b528cefcSMark Murrayrecognized, but not implemented.
236b528cefcSMark MurrayMDTM and SIZE are not specified in RFC 959, but will appear in the
237b528cefcSMark Murraynext updated FTP RFC.
238b528cefcSMark Murray.Pp
239b528cefcSMark MurrayThe ftp server will abort an active file transfer only when the
240b528cefcSMark MurrayABOR
241b528cefcSMark Murraycommand is preceded by a Telnet "Interrupt Process" (IP)
242b528cefcSMark Murraysignal and a Telnet "Synch" signal in the command Telnet stream,
243b528cefcSMark Murrayas described in Internet RFC 959.
244b528cefcSMark MurrayIf a
245b528cefcSMark MurraySTAT
246b528cefcSMark Murraycommand is received during a data transfer, preceded by a Telnet IP
247b528cefcSMark Murrayand Synch, transfer status will be returned.
248b528cefcSMark Murray.Pp
249b528cefcSMark Murray.Nm Ftpd
250b528cefcSMark Murrayinterprets file names according to the
251b528cefcSMark Murray.Dq globbing
252b528cefcSMark Murrayconventions used by
253b528cefcSMark Murray.Xr csh 1 .
254b528cefcSMark MurrayThis allows users to utilize the metacharacters
255b528cefcSMark Murray.Dq Li \&*?[]{}~ .
256b528cefcSMark Murray.Pp
257b528cefcSMark Murray.Nm Ftpd
258b528cefcSMark Murrayauthenticates users according to these rules.
259b528cefcSMark Murray.Pp
260b528cefcSMark Murray.Bl -enum -offset indent
261b528cefcSMark Murray.It
262b528cefcSMark MurrayIf Kerberos authentication is used, the user must pass valid tickets
263b528cefcSMark Murrayand the principal must be allowed to login as the remote user.
264b528cefcSMark Murray.It
265b528cefcSMark MurrayThe login name must be in the password data base, and not have a null
266b528cefcSMark Murraypassword (if kerberos is used the password field is not checked).  In
267b528cefcSMark Murraythis case a password must be provided by the client before any file
268b528cefcSMark Murrayoperations may be performed.  If the user has an OTP key, the response
269b528cefcSMark Murrayfrom a successful USER command will include an OTP challenge. The
270b528cefcSMark Murrayclient may choose to respond with a PASS command giving either a
271b528cefcSMark Murraystandard password or an OTP one-time password. The server will
272b528cefcSMark Murrayautomatically determine which type of password it has been given and
273b528cefcSMark Murrayattempt to authenticate accordingly. See
274b528cefcSMark Murray.Xr otp 1
275b528cefcSMark Murrayfor more information on OTP authentication.
276b528cefcSMark Murray.It
277b528cefcSMark MurrayThe login name must not appear in the file
278b528cefcSMark Murray.Pa /etc/ftpusers .
279b528cefcSMark Murray.It
280b528cefcSMark MurrayThe user must have a standard shell returned by
281b528cefcSMark Murray.Xr getusershell 3 .
282b528cefcSMark Murray.It
283b528cefcSMark MurrayIf the user name appears in the file
284b528cefcSMark Murray.Pa /etc/ftpchroot
285b528cefcSMark Murraythe session's root will be changed to the user's login directory by
286b528cefcSMark Murray.Xr chroot 2
287b528cefcSMark Murrayas for an
288b528cefcSMark Murray.Dq anonymous
289b528cefcSMark Murrayor
290b528cefcSMark Murray.Dq ftp
291b528cefcSMark Murrayaccount (see next item).  However, the user must still supply a password.
292b528cefcSMark MurrayThis feature is intended as a compromise between a fully anonymous account
293b528cefcSMark Murrayand a fully privileged account.  The account should also be set up as for an
294b528cefcSMark Murrayanonymous account.
295b528cefcSMark Murray.It
296b528cefcSMark MurrayIf the user name is
297b528cefcSMark Murray.Dq anonymous
298b528cefcSMark Murrayor
299b528cefcSMark Murray.Dq ftp ,
300b528cefcSMark Murrayan
301b528cefcSMark Murrayanonymous ftp account must be present in the password
302b528cefcSMark Murrayfile (user
303b528cefcSMark Murray.Dq ftp ) .
304b528cefcSMark MurrayIn this case the user is allowed
305b528cefcSMark Murrayto log in by specifying any password (by convention an email address for
306b528cefcSMark Murraythe user should be used as the password).
307b528cefcSMark Murray.El
308b528cefcSMark Murray.Pp
309b528cefcSMark MurrayIn the last case,
310b528cefcSMark Murray.Nm ftpd
311b528cefcSMark Murraytakes special measures to restrict the client's access privileges.
312b528cefcSMark MurrayThe server performs a
313b528cefcSMark Murray.Xr chroot 2
314b528cefcSMark Murrayto the home directory of the
315b528cefcSMark Murray.Dq ftp
316b528cefcSMark Murrayuser.
317b528cefcSMark MurrayIn order that system security is not breached, it is recommended
318b528cefcSMark Murraythat the
319b528cefcSMark Murray.Dq ftp
320b528cefcSMark Murraysubtree be constructed with care, consider following these guidelines
321b528cefcSMark Murrayfor anonymous ftp.
322b528cefcSMark Murray
323b528cefcSMark MurrayIn general all files should be owned by
324b528cefcSMark Murray.Dq root ,
325b528cefcSMark Murrayand have non-write permissions (644 or 755 depending on the kind of
326b528cefcSMark Murrayfile). No files should be owned or writable by
327b528cefcSMark Murray.Dq ftp
328b528cefcSMark Murray(possibly with exception for the
329b528cefcSMark Murray.Pa ~ftp/incoming ,
330b528cefcSMark Murrayas specified below).
331b528cefcSMark Murray.Bl -tag -width "~ftp/pub" -offset indent
332b528cefcSMark Murray.It Pa ~ftp
333b528cefcSMark MurrayThe
334b528cefcSMark Murray.Dq ftp
335b528cefcSMark Murrayhomedirectory should be owned by root.
336b528cefcSMark Murray.It Pa ~ftp/bin
337b528cefcSMark MurrayThe directory for external programs (such as
338b528cefcSMark Murray.Xr ls 1 ) .
339b528cefcSMark MurrayThese programs must either be statically linked, or you must setup an
340b528cefcSMark Murrayenvironment for dynamic linking when running chrooted.
341b528cefcSMark MurrayThese programs will be used if present:
342b528cefcSMark Murray.Bl -tag -width "locate" -offset indent
343b528cefcSMark Murray.It ls
344b528cefcSMark MurrayUsed when listing files.
345b528cefcSMark Murray.It compress
346b528cefcSMark MurrayWhen retrieving a filename that ends in
347b528cefcSMark Murray.Pa .Z ,
348b528cefcSMark Murrayand that file isn't present,
349b528cefcSMark Murray.Nm
350b528cefcSMark Murraywill try to find the filename without
351b528cefcSMark Murray.Pa .Z
352b528cefcSMark Murrayand compress it on the fly.
353b528cefcSMark Murray.It gzip
354b528cefcSMark MurraySame as compress, just with files ending in
355b528cefcSMark Murray.Pa .gz .
356b528cefcSMark Murray.It gtar
357b528cefcSMark MurrayEnables retrieval of whole directories as files ending in
358b528cefcSMark Murray.Pa .tar .
359b528cefcSMark MurrayCan also be combined with compression. You must use GNU Tar (or some
360b528cefcSMark Murrayother that supports the
361b528cefcSMark Murray.Fl z
362b528cefcSMark Murrayand
363b528cefcSMark Murray.Fl Z
364b528cefcSMark Murrayflags).
365b528cefcSMark Murray.It locate
366b528cefcSMark MurrayWill enable ``fast find'' with the
367b528cefcSMark Murray.Ic SITE FIND
368b528cefcSMark Murraycommand. You must also create a
369b528cefcSMark Murray.Pa locatedb
370b528cefcSMark Murrayfile in
371b528cefcSMark Murray.Pa ~ftp/etc .
372b528cefcSMark Murray.El
373b528cefcSMark Murray.It Pa ~ftp/etc
374b528cefcSMark MurrayIf you put copies of the
375b528cefcSMark Murray.Xr passwd 5
376b528cefcSMark Murrayand
377b528cefcSMark Murray.Xr group 5
378b528cefcSMark Murrayfiles here, ls will be able to produce owner names rather than
379b528cefcSMark Murraynumbers. Remember to remove any passwords from these files.
380b528cefcSMark Murray
381b528cefcSMark MurrayThe file
382b528cefcSMark Murray.Pa motd ,
383b528cefcSMark Murrayif present, will be printed after a successful login.
384b528cefcSMark Murray.It Pa ~ftp/dev
385b528cefcSMark MurrayPut a copy of
386b528cefcSMark Murray.Xr /dev/null 7
387b528cefcSMark Murrayhere.
388b528cefcSMark Murray.It Pa ~ftp/pub
389b528cefcSMark MurrayTraditional place to put whatever you want to make public.
390b528cefcSMark Murray.El
391b528cefcSMark Murray
392b528cefcSMark MurrayIf you want guests to be able to upload files, create a
393b528cefcSMark Murray.Pa ~ftp/incoming
394b528cefcSMark Murraydirectory owned by
395b528cefcSMark Murray.Dq root ,
396b528cefcSMark Murrayand group
397b528cefcSMark Murray.Dq ftp
398b528cefcSMark Murraywith mode 730 (make sure
399b528cefcSMark Murray.Dq ftp
400b528cefcSMark Murrayis member of group
401b528cefcSMark Murray.Dq ftp ) .
402b528cefcSMark MurrayThe following restrictions apply to anonymous users:
403b528cefcSMark Murray.Bl -bullet
404b528cefcSMark Murray.It
405b528cefcSMark MurrayDirectories created will have mode 700.
406b528cefcSMark Murray.It
407b528cefcSMark MurrayUploaded files will be created with an umask of 777, if not changed
408b528cefcSMark Murraywith the
409b528cefcSMark Murray.Fl g
410b528cefcSMark Murrayoption.
411b528cefcSMark Murray.It
412b528cefcSMark MurrayThese command are not accessible:
413b528cefcSMark Murray.Ic DELE , RMD , RNTO , RNFR ,
414b528cefcSMark Murray.Ic SITE UMASK ,
415b528cefcSMark Murrayand
416b528cefcSMark Murray.Ic SITE CHMOD .
417b528cefcSMark Murray.It
418b528cefcSMark MurrayFilenames must start with an alpha-numeric character, and consist of
419b528cefcSMark Murrayalpha-numeric characters or any of the following:
420b528cefcSMark Murray.Li \&+
421b528cefcSMark Murray(plus),
422b528cefcSMark Murray.Li \&-
423b528cefcSMark Murray(minus),
424b528cefcSMark Murray.Li \&=
425b528cefcSMark Murray(equal),
426b528cefcSMark Murray.Li \&_
427b528cefcSMark Murray(underscore),
428b528cefcSMark Murray.Li \&.
429b528cefcSMark Murray(period), and
430b528cefcSMark Murray.Li \&,
431b528cefcSMark Murray(comma).
432b528cefcSMark Murray.El
433b528cefcSMark Murray.Sh FILES
434b528cefcSMark Murray.Bl -tag -width /etc/ftpwelcome -compact
435b528cefcSMark Murray.It Pa /etc/ftpusers
436b528cefcSMark MurrayAccess list for users.
437b528cefcSMark Murray.It Pa /etc/ftpchroot
438b528cefcSMark MurrayList of normal users who should be chroot'd.
439b528cefcSMark Murray.It Pa /etc/ftpwelcome
440b528cefcSMark MurrayWelcome notice.
441b528cefcSMark Murray.It Pa /etc/motd
442b528cefcSMark MurrayWelcome notice after login.
443b528cefcSMark Murray.It Pa /etc/nologin
444b528cefcSMark MurrayDisplayed and access refused.
445b528cefcSMark Murray.It Pa ~/.klogin
446b528cefcSMark MurrayLogin access for Kerberos.
447b528cefcSMark Murray.El
448b528cefcSMark Murray.Sh SEE ALSO
449b528cefcSMark Murray.Xr ftp 1 ,
450b528cefcSMark Murray.Xr otp 1 ,
451b528cefcSMark Murray.Xr getusershell 3 ,
452b528cefcSMark Murray.Xr ftpusers 5 ,
453b528cefcSMark Murray.Xr syslogd 8 ,
454b528cefcSMark Murray.Sh STANDARDS
455b528cefcSMark Murray.Bl -tag -compact -width "RFC 1938"
456b528cefcSMark Murray.It Cm RFC 959
457b528cefcSMark MurrayFTP PROTOCOL SPECIFICATION
458b528cefcSMark Murray.It Cm RFC 1938
459b528cefcSMark MurrayOTP Specification
460b528cefcSMark Murray.It Cm RFC 2228
461b528cefcSMark MurrayFTP Security Extensions.
462b528cefcSMark Murray.Sh BUGS
463b528cefcSMark MurrayThe server must run as the super-user
464b528cefcSMark Murrayto create sockets with privileged port numbers.  It maintains
465b528cefcSMark Murrayan effective user id of the logged in user, reverting to
466b528cefcSMark Murraythe super-user only when binding addresses to sockets.  The
467b528cefcSMark Murraypossible security holes have been extensively
468b528cefcSMark Murrayscrutinized, but are possibly incomplete.
469b528cefcSMark Murray.Sh HISTORY
470b528cefcSMark MurrayThe
471b528cefcSMark Murray.Nm
472b528cefcSMark Murraycommand appeared in
473b528cefcSMark Murray.Bx 4.2 .
474