⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ftpd.8

📁 操作系统设计与实现源码
💻 8
字号:
.\" Copyright (c) 1985 Regents of the University of California..\" All rights reserved.  The Berkeley software License Agreement.\" specifies the terms and conditions for redistribution..\".\"	@(#)ftpd.8c	6.4 (Berkeley) 5/28/86.\".TH FTPD 8.SH NAMEftpd, in.ftpd, setup.anonftp \- DARPA Internet File Transfer Protocol server.SH SYNOPSIS.B "ftp stream tcp nowait root /usr/sbin/in.ftpd in.ftpd".br.B "tcpd ftp /usr/sbin/in.ftpd".SH DESCRIPTION.B Ftpdis the DARPA Internet File Transfer Prototocolserver process.  The server uses the TCP protocoland listens at the port specified in the ``ftp''service specification; see.BR services (5)..PPThe ftp server currently supports the following ftprequests;  case is not distinguished..PP.nf.ta \w'Request        'u\fBRequest	Description\fPABOR	abort previous commandACCT	specify account (ignored)ALLO	allocate storage (vacuously)APPE	append to a fileCDUP	change to parent of current working directoryCWD	change working directoryDELE	delete a fileHELP	give help informationLIST	give list files in a directory (``ls -lA'')MKD	make a directoryMODE	specify data transfer \fImode\fPNLST	give name list of files in directory (``ls'')NOOP	do nothingPASS	specify passwordPASV	prepare for server-to-server transferPORT	specify data connection portPWD	print the current working directoryQUIT	terminate sessionRETR	retrieve a fileRMD	remove a directoryRNFR	specify rename-from file nameRNTO	specify rename-to file nameSTOR	store a fileSTOU	store a file with a unique nameSTRU	specify data transfer \fIstructure\fPTYPE	specify data transfer \fItype\fPUSER	specify user nameXCUP	change to parent of current working directoryXCWD	change working directoryXMKD	make a directoryXPWD	print the current working directoryXRMD	remove a directory.fi.PPThe remaining ftp requests specified in Internet RFC 959 arerecognized, but not implemented..PPThe ftp server will abort an active file transfer only when theABOR command is preceded by a Telnet "Interrupt Process" (IP)signal and a Telnet "Synch" signal in the command Telnet stream,as described in Internet RFC 959..PP.B Ftpdinterprets file names according to the ``globbing''conventions used by.BR csh (1).This allows users to utilize the metacharacters ``*?[]{}~''..PP.B Ftpdauthenticates users according to three rules. .IP 1)The user name must be in the password data base,.BR /etc/passwd ,and not have a null password.  In this case a passwordmust be provided by the client before any file operationsmay be performed..IP 2)The user name must not appear in the file.BR /etc/ftpusers ..IP 3)If the user name is ``anonymous'' or ``ftp'', ananonymous ftp account must be present in the passwordfile (user ``ftp'').  In this case the user is allowedto log in by specifying any password (by convention thisis given as the client host's name)..PPIn the last case, .B ftpdtakes special measures to restrict the client's access privileges.The server performs a .BR chroot (2)command to the home directory of the ``ftp'' user.In order that system security is not breached, it is recommendedthat the ``ftp'' subtree be constructed with care;  the followingrules are recommended..IP ~ftp)Make the home directory owned by ``ftp'' and unwritable by anyone..IP ~ftp/bin)Make this directory owned by the super-user and unwritable byanyone.  The program.BR ls (1)must be present to support the list commands.  Thisprogram should have mode 111..IP ~ftp/etc)Make this directory owned by the super-user and unwritable byanyone.  The files.BR passwd (5)and.BR group (5)must be present for the .B lscommand to work properly.  These files should be mode 444..IP ~ftp/pub)Make this directory mode 755 and owned by the super-user.  Createdirectories in it owned by users if those users want to manage ananonymous ftp directory..IP ~ftp/pub/incoming)Optionally create this directory for anonymous uploads.  Make it mode777.  The FTP daemon will create files with mode 266, so remote userscan write a file, but only local users can do something with it..PPThe script.B setup.anonftpcan be used to create or check an anonymous FTP tree..SH "SEE ALSO".BR ftp (1)..SH BUGSThe anonymous account is inherently dangerous and shouldavoided when possible..ig \" Minix doesn't have privileged port numbers (yet?).PPThe server must run as the super-userto create sockets with privileged port numbers.  It maintainsan effective user id of the logged in user, reverting tothe super-user only when binding addresses to sockets.  Thepossible security holes have been extensivelyscrutinized, but are possibly incomplete...

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -