1ftphosts(4)                      File Formats                      ftphosts(4)
2
3
4

NAME

6       ftphosts - FTP Server individual user host access file
7

SYNOPSIS

9       /etc/ftpd/ftphosts
10
11

DESCRIPTION

13       The  ftphosts  file  is  used  to allow or deny access to accounts from
14       specified hosts. The following access capabilities are supported:
15
16       allow username addrglob [addrglob...]
17
18           Only allow users to login as username from host(s) that match addr‐
19           glob.
20
21
22       deny username addrglob [addrglob...]
23
24           Do  not  allow  users  to login as username from host(s) that match
25           addrglob.
26
27
28
29       A username of * matches all users. A username of anonymous or ftp spec‐
30       ifies the anonymous user.
31
32
33       addrglob  is  a regular expression that is matched against hostnames or
34       IP addresses. addrglob may also  be  in  the  form  address:netmask  or
35       address/CIDR,  or  be the name of a file that starts with a slash ('/')
36       and contains additional address globs. An exclamation mark (`!') placed
37       before the addrglob negates the test.
38
39
40       The first allow or deny entry in the ftphosts file that matches a user‐
41       name and host is used. If no entry exists for a username,  then  access
42       is  allowed.  Otherwise,  a  matching allow entry is required to permit
43       access.
44

EXAMPLES

46       You can use the following ftphosts file to allow anonymous access  from
47       any  host except those on the class A network 10, with the exception of
48       10.0.0.* IP addresses, which are allowed access:
49
50         allow   ftp   10.0.0.*
51         deny    ftp   10.*.*.*
52         allow   ftp   *
53
54
55
56       10.0.0.* can be written as 10.0.0.0:255.255.255.0 or 10.0.0.0/24.
57

FILES

59       /etc/ftpd/ftphosts
60
61

ATTRIBUTES

63       See attributes(5)  for descriptions of the following attributes:
64
65
66
67
68       ┌─────────────────────────────┬─────────────────────────────┐
69       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
70       ├─────────────────────────────┼─────────────────────────────┤
71       │Availability                 │SUNWftpr                     │
72       ├─────────────────────────────┼─────────────────────────────┤
73       │Interface Stability          │External                     │
74       └─────────────────────────────┴─────────────────────────────┘
75

SEE ALSO

77        in.ftpd(1M), ftpaccess(4), attributes(5)
78
79
80
81SunOS 5.11                        1 May 2003                       ftphosts(4)
Impressum