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 454137ff4cSJacques Vidrine.Op Fl dilvU 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. 1314137ff4cSJacques Vidrine.It Fl U 1324137ff4cSJacques VidrineIn previous versions of 1334137ff4cSJacques Vidrine.Nm ftpd , 1344137ff4cSJacques Vidrinewhen a passive mode client requested a data connection to the server, the 1354137ff4cSJacques Vidrineserver would use data ports in the range 1024..4999. Now, by default, 1364137ff4cSJacques Vidrineif the system supports the IP_PORTRANGE socket option, the server will 1374137ff4cSJacques Vidrineuse data ports in the range 49152..65535. Specifying this option will 1384137ff4cSJacques Vidrinerevert to the old behavior. 139b528cefcSMark Murray.It Fl v 140b528cefcSMark MurrayVerbose mode. 141adb0ddaeSAssar Westerlund.It Xo 142adb0ddaeSAssar Westerlund.Fl B Ns , 143adb0ddaeSAssar Westerlund.Fl -builtin-ls 144adb0ddaeSAssar Westerlund.Xc 145adb0ddaeSAssar Westerlunduse built-in ls to list files 146adb0ddaeSAssar Westerlund.It Xo 147adb0ddaeSAssar Westerlund.Fl -good-chars= Ns Ar string 148adb0ddaeSAssar Westerlund.Xc 149adb0ddaeSAssar Westerlundallowed anonymous upload filename chars 150b528cefcSMark Murray.El 151b528cefcSMark Murray.Pp 152b528cefcSMark MurrayThe file 153b528cefcSMark Murray.Pa /etc/nologin 154b528cefcSMark Murraycan be used to disable ftp access. 155b528cefcSMark MurrayIf the file exists, 156b528cefcSMark Murray.Nm 157b528cefcSMark Murraydisplays it and exits. 158b528cefcSMark MurrayIf the file 159b528cefcSMark Murray.Pa /etc/ftpwelcome 160b528cefcSMark Murrayexists, 161b528cefcSMark Murray.Nm 162b528cefcSMark Murrayprints it before issuing the 163b528cefcSMark Murray.Dq ready 164b528cefcSMark Murraymessage. 165b528cefcSMark MurrayIf the file 166b528cefcSMark Murray.Pa /etc/motd 167b528cefcSMark Murrayexists, 168b528cefcSMark Murray.Nm 169b528cefcSMark Murrayprints it after a successful login. 170b528cefcSMark Murray.Pp 171b528cefcSMark MurrayThe ftp server currently supports the following ftp requests. 172b528cefcSMark MurrayThe case of the requests is ignored. 173b528cefcSMark Murray.Bl -column "Request" -offset indent 174b528cefcSMark Murray.It Request Ta "Description" 175b528cefcSMark Murray.It ABOR Ta "abort previous command" 176b528cefcSMark Murray.It ACCT Ta "specify account (ignored)" 177b528cefcSMark Murray.It ALLO Ta "allocate storage (vacuously)" 178b528cefcSMark Murray.It APPE Ta "append to a file" 179b528cefcSMark Murray.It CDUP Ta "change to parent of current working directory" 180b528cefcSMark Murray.It CWD Ta "change working directory" 181b528cefcSMark Murray.It DELE Ta "delete a file" 182b528cefcSMark Murray.It HELP Ta "give help information" 183b528cefcSMark Murray.It LIST Ta "give list files in a directory" Pq Dq Li "ls -lgA" 184b528cefcSMark Murray.It MKD Ta "make a directory" 185b528cefcSMark Murray.It MDTM Ta "show last modification time of file" 186b528cefcSMark Murray.It MODE Ta "specify data transfer" Em mode 187b528cefcSMark Murray.It NLST Ta "give name list of files in directory" 188b528cefcSMark Murray.It NOOP Ta "do nothing" 189b528cefcSMark Murray.It PASS Ta "specify password" 190b528cefcSMark Murray.It PASV Ta "prepare for server-to-server transfer" 191b528cefcSMark Murray.It PORT Ta "specify data connection port" 192b528cefcSMark Murray.It PWD Ta "print the current working directory" 193b528cefcSMark Murray.It QUIT Ta "terminate session" 194b528cefcSMark Murray.It REST Ta "restart incomplete transfer" 195b528cefcSMark Murray.It RETR Ta "retrieve a file" 196b528cefcSMark Murray.It RMD Ta "remove a directory" 197b528cefcSMark Murray.It RNFR Ta "specify rename-from file name" 198b528cefcSMark Murray.It RNTO Ta "specify rename-to file name" 199b528cefcSMark Murray.It SITE Ta "non-standard commands (see next section)" 200b528cefcSMark Murray.It SIZE Ta "return size of file" 201b528cefcSMark Murray.It STAT Ta "return status of server" 202b528cefcSMark Murray.It STOR Ta "store a file" 203b528cefcSMark Murray.It STOU Ta "store a file with a unique name" 204b528cefcSMark Murray.It STRU Ta "specify data transfer" Em structure 205b528cefcSMark Murray.It SYST Ta "show operating system type of server system" 206b528cefcSMark Murray.It TYPE Ta "specify data transfer" Em type 207b528cefcSMark Murray.It USER Ta "specify user name" 208b528cefcSMark Murray.It XCUP Ta "change to parent of current working directory (deprecated)" 209b528cefcSMark Murray.It XCWD Ta "change working directory (deprecated)" 210b528cefcSMark Murray.It XMKD Ta "make a directory (deprecated)" 211b528cefcSMark Murray.It XPWD Ta "print the current working directory (deprecated)" 212b528cefcSMark Murray.It XRMD Ta "remove a directory (deprecated)" 213b528cefcSMark Murray.El 214b528cefcSMark Murray.Pp 215b528cefcSMark MurrayThe following commands are specified by RFC2228. 216b528cefcSMark Murray.Bl -column Request -offset indent 217b528cefcSMark Murray.It AUTH Ta "authentication/security mechanism" 218b528cefcSMark Murray.It ADAT Ta "authentication/security data" 219b528cefcSMark Murray.It PROT Ta "data channel protection level" 220b528cefcSMark Murray.It PBSZ Ta "protection buffer size" 221b528cefcSMark Murray.It MIC Ta "integrity protected command" 222b528cefcSMark Murray.It CONF Ta "confidentiality protected command" 223b528cefcSMark Murray.It ENC Ta "privacy protected command" 224b528cefcSMark Murray.It CCC Ta "clear command channel" 225b528cefcSMark Murray.El 226b528cefcSMark Murray.Pp 227b528cefcSMark MurrayThe following non-standard or 228b528cefcSMark Murray.Tn UNIX 229b528cefcSMark Murrayspecific commands are supported 230b528cefcSMark Murrayby the 231b528cefcSMark MurraySITE request. 232b528cefcSMark Murray.Pp 233b528cefcSMark Murray.Bl -column Request -offset indent 234b528cefcSMark Murray.It UMASK Ta change umask, (e.g. 235b528cefcSMark Murray.Ic "SITE UMASK 002" ) 236b528cefcSMark Murray.It IDLE Ta set idle-timer, (e.g. 237b528cefcSMark Murray.Ic "SITE IDLE 60" ) 238b528cefcSMark Murray.It CHMOD Ta change mode of a file (e.g. 239b528cefcSMark Murray.Ic "SITE CHMOD 755 filename" ) 240b528cefcSMark Murray.It FIND Ta quickly find a specific file with GNU 241b528cefcSMark Murray.Xr locate 1 . 242b528cefcSMark Murray.It HELP Ta give help information. 243b528cefcSMark Murray.El 244b528cefcSMark Murray.Pp 245b528cefcSMark MurrayThe following Kerberos related site commands are understood. 246b528cefcSMark Murray.Bl -column Request -offset indent 247b528cefcSMark Murray.It KAUTH Ta obtain remote tickets. 248b528cefcSMark Murray.It KLIST Ta show remote tickets 249b528cefcSMark Murray.El 250b528cefcSMark Murray.Pp 251b528cefcSMark MurrayThe remaining ftp requests specified in Internet RFC 959 252b528cefcSMark Murrayare 253b528cefcSMark Murrayrecognized, but not implemented. 254b528cefcSMark MurrayMDTM and SIZE are not specified in RFC 959, but will appear in the 255b528cefcSMark Murraynext updated FTP RFC. 256b528cefcSMark Murray.Pp 257b528cefcSMark MurrayThe ftp server will abort an active file transfer only when the 258b528cefcSMark MurrayABOR 259b528cefcSMark Murraycommand is preceded by a Telnet "Interrupt Process" (IP) 260b528cefcSMark Murraysignal and a Telnet "Synch" signal in the command Telnet stream, 261b528cefcSMark Murrayas described in Internet RFC 959. 262b528cefcSMark MurrayIf a 263b528cefcSMark MurraySTAT 264b528cefcSMark Murraycommand is received during a data transfer, preceded by a Telnet IP 265b528cefcSMark Murrayand Synch, transfer status will be returned. 266b528cefcSMark Murray.Pp 267b528cefcSMark Murray.Nm Ftpd 268b528cefcSMark Murrayinterprets file names according to the 269b528cefcSMark Murray.Dq globbing 270b528cefcSMark Murrayconventions used by 271b528cefcSMark Murray.Xr csh 1 . 272b528cefcSMark MurrayThis allows users to utilize the metacharacters 273b528cefcSMark Murray.Dq Li \&*?[]{}~ . 274b528cefcSMark Murray.Pp 275b528cefcSMark Murray.Nm Ftpd 276b528cefcSMark Murrayauthenticates users according to these rules. 277b528cefcSMark Murray.Pp 278b528cefcSMark Murray.Bl -enum -offset indent 279b528cefcSMark Murray.It 280b528cefcSMark MurrayIf Kerberos authentication is used, the user must pass valid tickets 281b528cefcSMark Murrayand the principal must be allowed to login as the remote user. 282b528cefcSMark Murray.It 283b528cefcSMark MurrayThe login name must be in the password data base, and not have a null 284b528cefcSMark Murraypassword (if kerberos is used the password field is not checked). In 285b528cefcSMark Murraythis case a password must be provided by the client before any file 286b528cefcSMark Murrayoperations may be performed. If the user has an OTP key, the response 287b528cefcSMark Murrayfrom a successful USER command will include an OTP challenge. The 288b528cefcSMark Murrayclient may choose to respond with a PASS command giving either a 289b528cefcSMark Murraystandard password or an OTP one-time password. The server will 290b528cefcSMark Murrayautomatically determine which type of password it has been given and 291b528cefcSMark Murrayattempt to authenticate accordingly. See 292b528cefcSMark Murray.Xr otp 1 293b528cefcSMark Murrayfor more information on OTP authentication. 294b528cefcSMark Murray.It 295b528cefcSMark MurrayThe login name must not appear in the file 296b528cefcSMark Murray.Pa /etc/ftpusers . 297b528cefcSMark Murray.It 298b528cefcSMark MurrayThe user must have a standard shell returned by 299b528cefcSMark Murray.Xr getusershell 3 . 300b528cefcSMark Murray.It 301b528cefcSMark MurrayIf the user name appears in the file 302b528cefcSMark Murray.Pa /etc/ftpchroot 303b528cefcSMark Murraythe session's root will be changed to the user's login directory by 304b528cefcSMark Murray.Xr chroot 2 305b528cefcSMark Murrayas for an 306b528cefcSMark Murray.Dq anonymous 307b528cefcSMark Murrayor 308b528cefcSMark Murray.Dq ftp 309b528cefcSMark Murrayaccount (see next item). However, the user must still supply a password. 310b528cefcSMark MurrayThis feature is intended as a compromise between a fully anonymous account 311b528cefcSMark Murrayand a fully privileged account. The account should also be set up as for an 312b528cefcSMark Murrayanonymous account. 313b528cefcSMark Murray.It 314b528cefcSMark MurrayIf the user name is 315b528cefcSMark Murray.Dq anonymous 316b528cefcSMark Murrayor 317b528cefcSMark Murray.Dq ftp , 318b528cefcSMark Murrayan 319b528cefcSMark Murrayanonymous ftp account must be present in the password 320b528cefcSMark Murrayfile (user 321b528cefcSMark Murray.Dq ftp ) . 322b528cefcSMark MurrayIn this case the user is allowed 323b528cefcSMark Murrayto log in by specifying any password (by convention an email address for 324b528cefcSMark Murraythe user should be used as the password). 325b528cefcSMark Murray.El 326b528cefcSMark Murray.Pp 327b528cefcSMark MurrayIn the last case, 328b528cefcSMark Murray.Nm ftpd 329b528cefcSMark Murraytakes special measures to restrict the client's access privileges. 330b528cefcSMark MurrayThe server performs a 331b528cefcSMark Murray.Xr chroot 2 332b528cefcSMark Murrayto the home directory of the 333b528cefcSMark Murray.Dq ftp 334b528cefcSMark Murrayuser. 335b528cefcSMark MurrayIn order that system security is not breached, it is recommended 336b528cefcSMark Murraythat the 337b528cefcSMark Murray.Dq ftp 338b528cefcSMark Murraysubtree be constructed with care, consider following these guidelines 339b528cefcSMark Murrayfor anonymous ftp. 3405e9cd1aeSAssar Westerlund.Pp 341b528cefcSMark MurrayIn general all files should be owned by 342b528cefcSMark Murray.Dq root , 343b528cefcSMark Murrayand have non-write permissions (644 or 755 depending on the kind of 344b528cefcSMark Murrayfile). No files should be owned or writable by 345b528cefcSMark Murray.Dq ftp 346b528cefcSMark Murray(possibly with exception for the 347b528cefcSMark Murray.Pa ~ftp/incoming , 348b528cefcSMark Murrayas specified below). 349b528cefcSMark Murray.Bl -tag -width "~ftp/pub" -offset indent 350b528cefcSMark Murray.It Pa ~ftp 351b528cefcSMark MurrayThe 352b528cefcSMark Murray.Dq ftp 353b528cefcSMark Murrayhomedirectory should be owned by root. 354b528cefcSMark Murray.It Pa ~ftp/bin 355b528cefcSMark MurrayThe directory for external programs (such as 356b528cefcSMark Murray.Xr ls 1 ) . 357b528cefcSMark MurrayThese programs must either be statically linked, or you must setup an 358b528cefcSMark Murrayenvironment for dynamic linking when running chrooted. 359b528cefcSMark MurrayThese programs will be used if present: 360b528cefcSMark Murray.Bl -tag -width "locate" -offset indent 361b528cefcSMark Murray.It ls 362b528cefcSMark MurrayUsed when listing files. 363b528cefcSMark Murray.It compress 364b528cefcSMark MurrayWhen retrieving a filename that ends in 365b528cefcSMark Murray.Pa .Z , 366b528cefcSMark Murrayand that file isn't present, 367b528cefcSMark Murray.Nm 368b528cefcSMark Murraywill try to find the filename without 369b528cefcSMark Murray.Pa .Z 370b528cefcSMark Murrayand compress it on the fly. 371b528cefcSMark Murray.It gzip 372b528cefcSMark MurraySame as compress, just with files ending in 373b528cefcSMark Murray.Pa .gz . 374b528cefcSMark Murray.It gtar 375b528cefcSMark MurrayEnables retrieval of whole directories as files ending in 376b528cefcSMark Murray.Pa .tar . 377b528cefcSMark MurrayCan also be combined with compression. You must use GNU Tar (or some 378b528cefcSMark Murrayother that supports the 379b528cefcSMark Murray.Fl z 380b528cefcSMark Murrayand 381b528cefcSMark Murray.Fl Z 382b528cefcSMark Murrayflags). 383b528cefcSMark Murray.It locate 384b528cefcSMark MurrayWill enable ``fast find'' with the 385b528cefcSMark Murray.Ic SITE FIND 386b528cefcSMark Murraycommand. You must also create a 387b528cefcSMark Murray.Pa locatedb 388b528cefcSMark Murrayfile in 389b528cefcSMark Murray.Pa ~ftp/etc . 390b528cefcSMark Murray.El 391b528cefcSMark Murray.It Pa ~ftp/etc 392b528cefcSMark MurrayIf you put copies of the 393b528cefcSMark Murray.Xr passwd 5 394b528cefcSMark Murrayand 395b528cefcSMark Murray.Xr group 5 396b528cefcSMark Murrayfiles here, ls will be able to produce owner names rather than 397b528cefcSMark Murraynumbers. Remember to remove any passwords from these files. 3985e9cd1aeSAssar Westerlund.Pp 399b528cefcSMark MurrayThe file 400b528cefcSMark Murray.Pa motd , 401b528cefcSMark Murrayif present, will be printed after a successful login. 402b528cefcSMark Murray.It Pa ~ftp/dev 403b528cefcSMark MurrayPut a copy of 404b528cefcSMark Murray.Xr /dev/null 7 405b528cefcSMark Murrayhere. 406b528cefcSMark Murray.It Pa ~ftp/pub 407b528cefcSMark MurrayTraditional place to put whatever you want to make public. 408b528cefcSMark Murray.El 4095e9cd1aeSAssar Westerlund.Pp 410b528cefcSMark MurrayIf you want guests to be able to upload files, create a 411b528cefcSMark Murray.Pa ~ftp/incoming 412b528cefcSMark Murraydirectory owned by 413b528cefcSMark Murray.Dq root , 414b528cefcSMark Murrayand group 415b528cefcSMark Murray.Dq ftp 416b528cefcSMark Murraywith mode 730 (make sure 417b528cefcSMark Murray.Dq ftp 418b528cefcSMark Murrayis member of group 419b528cefcSMark Murray.Dq ftp ) . 420b528cefcSMark MurrayThe following restrictions apply to anonymous users: 421b528cefcSMark Murray.Bl -bullet 422b528cefcSMark Murray.It 423b528cefcSMark MurrayDirectories created will have mode 700. 424b528cefcSMark Murray.It 425b528cefcSMark MurrayUploaded files will be created with an umask of 777, if not changed 426b528cefcSMark Murraywith the 427b528cefcSMark Murray.Fl g 428b528cefcSMark Murrayoption. 429b528cefcSMark Murray.It 430b528cefcSMark MurrayThese command are not accessible: 431b528cefcSMark Murray.Ic DELE , RMD , RNTO , RNFR , 432b528cefcSMark Murray.Ic SITE UMASK , 433b528cefcSMark Murrayand 434b528cefcSMark Murray.Ic SITE CHMOD . 435b528cefcSMark Murray.It 436b528cefcSMark MurrayFilenames must start with an alpha-numeric character, and consist of 437b528cefcSMark Murrayalpha-numeric characters or any of the following: 438b528cefcSMark Murray.Li \&+ 439b528cefcSMark Murray(plus), 440b528cefcSMark Murray.Li \&- 441b528cefcSMark Murray(minus), 442b528cefcSMark Murray.Li \&= 443b528cefcSMark Murray(equal), 444b528cefcSMark Murray.Li \&_ 445b528cefcSMark Murray(underscore), 446b528cefcSMark Murray.Li \&. 447b528cefcSMark Murray(period), and 448b528cefcSMark Murray.Li \&, 449b528cefcSMark Murray(comma). 450b528cefcSMark Murray.El 451b528cefcSMark Murray.Sh FILES 452b528cefcSMark Murray.Bl -tag -width /etc/ftpwelcome -compact 453b528cefcSMark Murray.It Pa /etc/ftpusers 454b528cefcSMark MurrayAccess list for users. 455b528cefcSMark Murray.It Pa /etc/ftpchroot 456b528cefcSMark MurrayList of normal users who should be chroot'd. 457b528cefcSMark Murray.It Pa /etc/ftpwelcome 458b528cefcSMark MurrayWelcome notice. 459b528cefcSMark Murray.It Pa /etc/motd 460b528cefcSMark MurrayWelcome notice after login. 461b528cefcSMark Murray.It Pa /etc/nologin 462b528cefcSMark MurrayDisplayed and access refused. 463b528cefcSMark Murray.It Pa ~/.klogin 464b528cefcSMark MurrayLogin access for Kerberos. 465b528cefcSMark Murray.El 466b528cefcSMark Murray.Sh SEE ALSO 467b528cefcSMark Murray.Xr ftp 1 , 468b528cefcSMark Murray.Xr otp 1 , 469b528cefcSMark Murray.Xr getusershell 3 , 470b528cefcSMark Murray.Xr ftpusers 5 , 4714137ff4cSJacques Vidrine.Xr syslogd 8 472b528cefcSMark Murray.Sh STANDARDS 473b528cefcSMark Murray.Bl -tag -compact -width "RFC 1938" 474b528cefcSMark Murray.It Cm RFC 959 475b528cefcSMark MurrayFTP PROTOCOL SPECIFICATION 476b528cefcSMark Murray.It Cm RFC 1938 477b528cefcSMark MurrayOTP Specification 478b528cefcSMark Murray.It Cm RFC 2228 479b528cefcSMark MurrayFTP Security Extensions. 4805e9cd1aeSAssar Westerlund.El 481b528cefcSMark Murray.Sh BUGS 482b528cefcSMark MurrayThe server must run as the super-user 483b528cefcSMark Murrayto create sockets with privileged port numbers. It maintains 484b528cefcSMark Murrayan effective user id of the logged in user, reverting to 485b528cefcSMark Murraythe super-user only when binding addresses to sockets. The 486b528cefcSMark Murraypossible security holes have been extensively 487b528cefcSMark Murrayscrutinized, but are possibly incomplete. 488b528cefcSMark Murray.Sh HISTORY 489b528cefcSMark MurrayThe 490b528cefcSMark Murray.Nm 491b528cefcSMark Murraycommand appeared in 492b528cefcSMark Murray.Bx 4.2 . 493