Developer's Daily Unix by Example
  main | java | perl | unix | dev directory | web log
 
 
Main
Unix
Man Pages
   

ftphosts

Name
Description
Access Capabilities
Files
See Also

Name

ftphosts ? ftpd individual user host access file

Description

The ftphosts file is used to allow or deny access to certain accounts from various hosts.

Access Capabilities

allow <username> <addrglob> [<addrglob> ...]

Only allow host(s) matching <addrglob> to log in as <username>.

deny <username> <addrglob> [<addrglob> ...]

Always deny host(s) matching <addrglob> to log in as <username>.

A username of anonymous or ftp specifies the anonymous user.

The <addrglob> may be also be specified as address/cidr or address:netmask. For example: 10.0.0.0/8 or 10.0.0.0:255.0.0.0

NOTE VERY CAREFULLY:

The last rule which matches is the default rule. So, to allow a user to login from anywhere _except_ the listed hosts, you need both allow and deny rules. The following example denies the user hacked from logging in from the host 10.1.2.3, but allows login from all other hosts.

deny hacked 10.1.2.3 allow hacked *

Files

FTPLIB/ftphosts

See Also

ftpd(8), ftpaccess(5), xferlog(5), ftpconversions(5), ftpshut(8)


copyright 1998-2007, devdaily.com, all rights reserved.
devdaily.com, an alvin j. alexander production.