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

📄 ftpaccess.5

📁 wu-ftpd类unix下的ftp服务器,可用于嵌入式系统
💻 5
📖 第 1 页 / 共 3 页
字号:
.\".\" Copyright (c) 1999,2000 WU-FTPD Development Group. .\" All rights reserved..\" .\" Portions Copyright (c) 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994 .\" The Regents of the University of California.  Portions Copyright (c) .\" 1993, 1994 Washington University in Saint Louis.  Portions Copyright .\" (c) 1996, 1998 Berkeley Software Design, Inc.  Portions Copyright (c) .\" 1998 Sendmail, Inc.  Portions Copyright (c) 1983, 1995, 1996, 1997 Eric .\" P. Allman.  Portions Copyright (c) 1989 Massachusetts Institute of .\" Technology.  Portions Copyright (c) 1997 Stan Barber.  Portions .\" Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997 Free Software .\" Foundation, Inc.  Portions Copyright (c) 1997 Kent Landfield. .\".\" Use and distribution of this software and its source code are governed .\" by the terms and conditions of the WU-FTPD Software License ("LICENSE"). .\".\"     $Id: ftpaccess.5,v 1.24 2000/07/01 17:49:09 wuftpd Exp $.\".TH ftpaccess 5.SH Nameftpaccess \- ftpd configuration file.SH DescriptionThe ftpaccess file is used to configure the operation of.BR ftpd(8) ..SH Access Capabilities.TP 0.5i.B autogroup <groupname> <class> [<class> ...]If an ANONYMOUS user is a member of any of <class>, the ftp server willperform a setegid() to <groupname>.  This allows access togroup-and-owner-read-only files and directories to a particular class ofanonymous users. <groupname> is a valid group from /etc/group (or wherevermechanism your.IR getgrent(2)library routine uses)..TP 0.5i.B class <class> <typelist> <addrglob> [<addrglob> ...]Define <class> of users, with source addresses of the form <addrglob>.Multiple members of <class> may be defined.  There may be multiple "class"commands listing additional members of the class.  If multiple "class"commands can apply to the current session, the first one listed in theaccess file is used.  Failing to define a valid class for a host will causeaccess to be denied.  <typelist> is a comma-separated list of any of thekeywords "anonymous", "guest" and "real".  If the "real" keyword isincluded, the class can match users using FTP to access real accounts, andif the "anonymous" keyword is included the class can match users usinganonymous FTP.  The "guest" keyword matches guest access accounts (see"guestgroup" for more information)<addrglob> may be a globbed domain name or a globbed numeric address.  Itmay also be the name of a file, starting with a slash ('/'), which containsadditional address globs, as well as in the form address:netmask oraddress/cidr.Placing an exclamation (!) before an <addrglob> negates the test.  Forexample:.nf    class rmtuser real !*.example.com.fiwill classify real users from outside the example.com domain as the classrmtuser.  Use care with this option.  Remember, the result of each test isOR'ed with other tests on the line..TP 0.5i.B deny <addrglob> <message_file>Always deny access to host(s) matching <addrglob>.  <message_file> isdisplayed.  <addrglob> may be "!nameserved" to deny access to sites withouta working nameserver.  It may also be the name of a file, starting with aslash ('/'), which contains additional address globs, as well as in theform address:netmask or address/cidr..TP 0.5i.B guestgroup <groupname> [<groupname> ...].TP 0.5i.B guestuser <username> [<username> ...].TP 0.5i.B realgroup <groupname> [<groupname> ...].TP 0.5i.B realuser <username> [<username> ...]For guestgroup, if a REAL user is a member of any of <groupname>, thesession is set up exactly as with anonymous FTP.  In other words, achroot() is done, and the user is no longer permitted to issue the USER andPASS commands.  <groupname> is a valid group from /etc/group (or whatevermechanism your.IR getgrent(3)library routine uses).The user's home directory must be properly set up, exactly as anonymous FTPwould be.  The home directory field of the passwd entry is divided into twodirectories.  The first field is the root directory which will be theargument to the.IR chroot(2)call.  The second half is the user's home directory relative to the rootdirectory.  The two halves are separated by a "/./".For example, in /etc/passwd, the real entry:.nf    guest1:<passwd>:100:92:Guest Account:/ftp/./incoming:/etc/ftponly.fiWhen guest1 successfully logs in, the ftp server will.BR chroot("/ftp")and then.BR chdir("/incoming") .The guest user will only be able to access the directory structure under.BR /ftp(which will look and act as / to guest1), just as an anonymous FTP user would.The group name may be specified by either name or numeric ID.  To use anumeric group ID, place a '%' before the number.  Ranges may be given.  Usean asterisk to mean all groups.guestuser works like guestgroup, except uses the user name (or numeric ID).realuser and realgroup have the same syntax, but reverse the effect ofguestuser and guestgroup.  They allow real user access when the remote userwould otherwise be determined a guest.For example:.nf    guestuser *    realgroup admin.ficauses all non-anonymous users to be treated as guest, with the soleexception of users in the admin group who are granted real user access..TP 0.5i.B nice <nice-delta> [<class>]Adjust the process nice value of the ftpd server process by the indicated<nice-delta> value if the remote user is a member of the named <class>.  If<class> is not specified, then use <nice-delta> as the default adjustmentto the ftpd server process nice value.  This default nice value adjustmentis used to adjust the nice value of the server process only for those userswho do not belong to any class for which a class-specific `nice' directiveexists in the ftpaccess file..TP 0.5i.B defumask <umask> [<class>]Set the umask applied to files created by daemon if the remote use is amember of the named class.  If <class> is not specified, then use the umaskas the default for classes which do not have one specified..TP 0.5i.B tcpwindow <size> [<class>]Set the TCP window size for the data connection.  This can be used tocontrol network traffic.  For instance, slow PPP dialin links may needsmaller TCP windows to speed up throughput.  If you don't know what thisdoes, don't play with it..TP 0.5i.B keepalive <yes|no>Set the TCP SO_KEEPALIVE option for data sockets.  This can be used to controlnetwork disconnect.  Yes: set it.  No: use system default (usually off).  Youprobably want to set this..TP 0.5i.B timeout accept <seconds>.TP 0.5i.B timeout connect <seconds>.TP 0.5i.B timeout data <seconds>.TP 0.5i.B timeout idle <seconds>.TP 0.5i.B timeout maxidle <seconds>.TP 0.5i.B timeout RFC931 <seconds>Set various timeouts.Accept (default 120 seconds): how long the daemon will wait for an incoming(PASV) data connection.Connect (default 120 seconds): how long the daemon will wait attempting toestablish an outgoing (PORT) data connection.  This effects the actualconnetion attempt.  The daemon makes several attempts, sleeping a whilebetween each, before completely giving up.Data (default 1200 seconds): how long the daemon will wait for someactivity on the data connection.  You should keep this long because theremote client may have a slow link and there can be quite a bit of dataqueued for the client.Idle (default 900 seconds): how long the daemon will wait for the nextcommand.  The default can also be overridden by the command line -a option.This access clause overrides both.MaxIdle (default 1200 seconds): the SITE IDLE command allows the remoteclient to establish a higher value for the idle timeout.  This sets theupper limit the client may request.  The default can also be overridden bythe command line -A option.  This access clause overrides both.RFC931 (default 10 seconds): the maximum time the daemon allows for theentire RFC931 (AUTH/ident) conversation.  Setting this to zero (0)completely disables the daemon's use of this protocol.  The informationobtained via RFC931 is recorded in the system logs and not actually used inany authentication..TP 0.5i.B file-limit [<raw>] <in|out|total> <count> [<class>]Limit the number of data files a user in the given class may transfer.  Thelimit may be placed on files in, out or total.  If no class is specified,the limit is the default for classes which do not have a limit specified.The optional.B rawparameter applies the limit to the total traffic rather than just datafiles..TP 0.5i.B data-limit [<raw>] <in|out|total> <count> [<class>]Limit the number of data bytes a user in the given class may transfer.  Thelimit may be place on bytes in, out or total.  If no class is specified,the limit is the default for classes which do not have a limit specified.The optional.B rawparameter applies the limit to total traffic rather than just data files..TP 0.5i.B limit-time {*|anonymous|guest} <minutes>Limit the total time a session can take.  By default, there is no limit.Real users are never limited..TP 0.5i.B guestserver [<hostname>]Controls which hosts may be used for anonymous or guest access.  If usedwithout <hostname>, denies all guest or anonymous access to this site.More than one <hostname> may be specified.  Guest and anonymous access willonly be allowed on the named machines.  If access is denied, the user willbe asked to use the first <hostname> listed..TP 0.5i.B limit <class> <n> <times> <message_file>Limit <class> to <n> users at times <times>, displaying <message_file> ifthe user is denied access.  Limit check is performed at login time only.If multiple "limit" commands can apply to the current session, the firstapplicable one is used.  Failing to define a valid limit, or a limit of -1,is equivalent to unlimited. <times> is in same format as the times in theUUCP L.sys file..TP 0.5i.B noretrieve [absolute|relative] [class=<classname>] ... [-] <filename> <filename> ...Always deny retrieve-ability of these files.  If the files are a pathspecification (i.e. begins with '/' character) then only those files are markedun-gettable, otherwise all files with matching the filename are refusedtransfer.  For example:.nf    noretrieve /etc/passwd core.fispecifies no one will be able to get the file /etc/passwd whereas they willbe allowed to transfer a file `passwd' if it is not in /etc. On the otherhand no one will be able to get files named `core' wherever they are.Directory specifications mark all files and sub-directories in the nameddirectory un-gettable.  The <filename> may be specified as a file glob.  Forexample:.nf    noretrieve /etc /home/*/.htaccess.fispecified no files in /etc or any of its sub-directories may be retrieved.Also, no files named '.htaccess' anywhere under the /home directory may beretrieved.The optional first parameter selects whether names are intepreted asabsolute or relative to the current chroot'd environment.  The default isto intepret names beginning with a slash as absolute.The noretrieve restrictions may be placed upon members of particularclasses.  If any class= is specified the named files are onlynon-retrievable if the current user is a member of any of the givenclasses..TP 0.5i.B allow-retrieve [absolute|relative] [class=<classname>]... [-] <filename> ...Allows retrieval of files which would otherwise be denied by noretrieve..TP 0.5i.B loginfails <number>After <number> login failures, log a "repeated login failures" message andterminate the FTP connection.  Default value is 5..TP 0.5i.B private <yes|no>After user logs in, the SITE GROUP and SITE GPASS commands may be used tospecify an enhanced access group and associated password.  If the groupname and password are valid, the user becomes (via setegid()) a member ofthe group specified in the group access file /etc/ftpgroups.The format of the group access file is:.nf    access_group_name:encrypted_password:real_group_name.fiwhere access_group_name is an arbitrary (alphanumeric + punctuation)string.  encrypted_password is the password encrypted via.IR crypt(3) ,exactly like in.BR /etc/passwd ..B real_group_nameis the name of a valid group listed in.BR /etc/group .NOTE: For this option to work for anonymous FTP users, the ftp server mustkeep.B /etc/grouppermanently open and the group access file is loaded into memory.  Thismeans that (1) the ftp server now has an additional file descriptor open,and (2) the necessary passwords and access privileges granted to users viaSITE GROUP will be static for the duration of an FTP session.  If you havean urgent need to change the access groups and/or passwords *NOW*, you justkill all of the running FTP servers..SH Informational Capabilities.TP 0.5i.B greeting full|brief|terse.TP 0.5i.B greeting text <message>Allows you to control how much information is given out before the remoteuser logs in.  'greeting full' is the default and shows the hostname anddaemon version.  'greeting brief' whose shows the hostname.  'greetingterse' simply says "FTP server ready."  Although full is the default, briefis recommended.The 'text' form allows you to specify any greeting message you desire.<message> can be any string; whitespace (spaces and tabs) is converted to asingle space..TP 0.5i.B banner <path>Works similarly to the message command, except that the banner is displayedbefore the user enters the username/password.  The <path> is relative tothe real system root, not the base of the anonymous FTP directory..B WARNING:use of this command can completely prevent non-compliant FTP clients frommaking use of the FTP server.  Not all clients can handle multi-lineresponses (which is how the banner is displayed)..TP 0.5i.B hostname <some.host.name>Defines the default host name of the ftp server.  This string will beprinted on the greeting message and every time the %L magic cookie is used.The host name for virtual servers overrides this value.  If not specified,the default host name for the local machine is used..TP 0.5i.B email <name>Defines the email address of the ftp archive maintainer.  This string willbe printed every time the %E magic cookie is used..TP 0.5i.B message <path> {<when> {<class> ...}}Define a file with <path> such that ftpd will display the contents of thefile to the user login time or upon using the change working directorycommand.  The <when> parameter may be "LOGIN" or "CWD=<dir>".  If <when> is"CWD=<dir>", <dir> specifies the new default directory which will triggerthe notification.The optional <class> specification allows the message to be displayed only

⌨️ 快捷键说明

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