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