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