Debian Codegraph @

contrib/dist/rpm/basic-pam.conf

raw
1 # This is a basic ProFTPD configuration file (rename it to
2 # 'proftpd.conf' for actual use. It establishes a single server
3 # and a single anonymous login. It assumes that you have a user/group
4 # "nobody" and "ftp" for normal operation and anon, and that you
5 # use PAM authentication.
6
7 ServerName "ProFTPD Default Installation"
8 ServerType standalone
9 DefaultServer on
10
11 # Port 21 is the standard FTP port.
12 Port 21
13
14 # Umask 022 is a good standard umask to prevent new dirs and files
15 # from being group and world writable.
16 Umask 022
17
18 # Use pam to authenticate (default) and be authoritative.
19 # Only need the LoadModule if mod_auth_pam is a DSO.
20 LoadModule mod_auth_pam.c
21 AuthPAMConfig proftpd
22 AuthOrder mod_auth_pam.c* mod_auth_unix.c
23
24 # PersistentPasswd causes problems with NIS/LDAP.
25 PersistentPasswd off
26
27 # To prevent DoS attacks, set the maximum number of child processes
28 # to 30. If you need to allow more than 30 concurrent connections
29 # at once, simply increase this value. Note that this ONLY works
30 # in standalone mode, in inetd mode you should use an inetd server
31 # that allows you to limit maximum number of processes per service
32 # (such as xinetd).
33 MaxInstances 30
34
35 # Set the user and group under which the server will run.
36 User nobody
37 Group nobody
38
39 # To cause every FTP user to be "jailed" (chrooted) into their home
40 # directory, uncomment this line.
41 #DefaultRoot ~
42
43 # Normally, we want files to be overwriteable.
44 AllowOverwrite on
45
46 # Bar use of SITE CHMOD by default
47 <Limit SITE_CHMOD>
48 DenyAll
49 </Limit>
50
51 # A basic anonymous configuration, no upload directories. If you do not
52 # want anonymous users, simply delete this entire <Anonymous> section.
53 <Anonymous ~ftp>
54 User ftp
55 Group ftp
56
57 # We want clients to be able to login with "anonymous" as well as "ftp"
58 UserAlias anonymous ftp
59
60 # Limit the maximum number of anonymous logins
61 MaxClients 10
62
63 # We want 'welcome.msg' displayed at login, and '.message' displayed
64 # in each newly chdired directory.
65 DisplayLogin welcome.msg
66 DisplayChdir .message
67
68 # Limit WRITE everywhere in the anonymous chroot
69 <Limit WRITE>
70 DenyAll
71 </Limit>
72 </Anonymous>