SHOW:
|
|
- or go back to the newest paste.
1 | /etc/init.d/proftpd status | |
2 | Checking for service proftpd unused | |
3 | proftpd.service - ProFTPd FTP server | |
4 | Loaded: loaded (/usr/lib/systemd/system/proftpd.service; disabled) | |
5 | Active: failed (Result: exit-code) since Tue, 2013-08-20 14:31:34 EAT; 4min 24s ago | |
6 | Process: 5213 ExecStart=/usr/sbin/proftpd --nodaemon (code=exited, status=1/FAILURE) | |
7 | CGroup: name=systemd:/system/proftpd.service | |
8 | ||
9 | Aug 20 14:31:34 linux-cmb9.site systemd[1]: Starting ProFTPd FTP server... | |
10 | Aug 20 14:31:34 linux-cmb9.site systemd[1]: Started ProFTPd FTP server. | |
11 | Aug 20 14:31:34 linux-cmb9.site proftpd[5213]: linux-cmb9.site proftpd[5213]: unable to bind to Unix domain socket at '/var/run/proftpd/test.sock': No such file or directory | |
12 | Aug 20 14:31:34 linux-cmb9.site proftpd[5213]: linux-cmb9.site proftpd[5213]: warning: unable to determine IP address of 'linux-cmb9.site' | |
13 | Aug 20 14:31:34 linux-cmb9.site proftpd[5213]: linux-cmb9.site proftpd[5213]: error: no valid servers configured | |
14 | Aug 20 14:31:34 linux-cmb9.site proftpd[5213]: linux-cmb9.site proftpd[5213]: Fatal: error processing configuration file '/etc/proftpd/proftpd.conf' | |
15 | Aug 20 14:31:34 linux-cmb9.site systemd[1]: proftpd.service: main process exited, code=exited, status=1/FAILURE | |
16 | - | Aug 20 14:31:34 linux-cmb9.site systemd[1]: Unit proftpd.service entered failed state |
16 | + | Aug 20 14:31:34 linux-cmb9.site systemd[1]: Unit proftpd.service entered failed state |
17 | ||
18 | //proftp.conf file | |
19 | ||
20 | # This is a basic ProFTPD configuration file (rename it to | |
21 | # 'proftpd.conf' for actual use. It establishes a single server | |
22 | # and a single anonymous login. It assumes that you have a user/group | |
23 | # "nobody" and "ftp" for normal operation and anon. | |
24 | ||
25 | ServerName "ProFTPD" | |
26 | ServerType standalone | |
27 | DefaultServer on | |
28 | ||
29 | # Port 21 is the standard FTP port. | |
30 | Port 21 | |
31 | ||
32 | # FireWall PortRange for PASV | |
33 | PassivePorts 40000 40999 | |
34 | ||
35 | # Set DebugLevel to values between 0 and 9 | |
36 | # default is 0 | |
37 | DebugLevel 0 | |
38 | ||
39 | # SystemLog -- Redirect syslogging to a file | |
40 | SystemLog /var/log/proftpd/proftpd.log | |
41 | ||
42 | # Don't use IPv6 support by default. | |
43 | UseIPv6 off | |
44 | ||
45 | # Umask 022 is a good standard umask to prevent new dirs and files | |
46 | # from being group and world writable. | |
47 | Umask 022 | |
48 | ||
49 | # To prevent DoS attacks, set the maximum number of child processes | |
50 | # to 30. If you need to allow more than 30 concurrent connections | |
51 | # at once, simply increase this value. Note that this ONLY works | |
52 | # in standalone mode, in inetd mode you should use an inetd server | |
53 | # that allows you to limit maximum number of processes per service | |
54 | # (such as xinetd). | |
55 | MaxInstances 30 | |
56 | ||
57 | # Set the user and group under which the server will run. | |
58 | User ftp | |
59 | Group ftp | |
60 | ||
61 | # Some logging formats | |
62 | LogFormat default "%h %l %u %t \"%r\" %s %b" | |
63 | LogFormat auth "%v [%P] %h %t \"%r\" %s" | |
64 | LogFormat write "%h %l %u %t \"%r\" %s %b" | |
65 | ||
66 | # ------------------------------ | |
67 | # Global Settings | |
68 | # ------------------------------ | |
69 | <Global> | |
70 | ||
71 | # ------------------------------ | |
72 | # Login | |
73 | # ------------------------------ | |
74 | ||
75 | ServerIdent on "FTP server ready" | |
76 | DeferWelcome on | |
77 | DisplayConnect /etc/proftpd/msg | |
78 | ||
79 | #IdentLookups off | |
80 | UseFtpUsers off | |
81 | RequireValidShell off | |
82 | ||
83 | TimeoutLogin 60 | |
84 | MaxLoginAttempts 3 | |
85 | #MaxClientsPerHost none | |
86 | #MaxClientsPerUser 1 "Only one connection at a time." | |
87 | ||
88 | # ------------------------------ | |
89 | # Authentication | |
90 | # ------------------------------ | |
91 | ||
92 | ### PAM Authentication | |
93 | # AuthPAM: default: on | |
94 | AuthPAM off | |
95 | ||
96 | # changed AuthPAMConfig file | |
97 | AuthPAMConfig proftpd | |
98 | ### PAM Authentication | |
99 | ||
100 | AuthUserFile /etc/proftpd/auth/passwd | |
101 | AuthGroupFile /etc/group | |
102 | ||
103 | ### order of auth modules | |
104 | #AuthOrder mod_auth_unix.c mod_auth_file.c | |
105 | AuthOrder mod_auth_file.c | |
106 | ||
107 | # ------------------------------ | |
108 | # Post-Login | |
109 | # ------------------------------ | |
110 | ||
111 | DisplayLogin welcome.msg | |
112 | DisplayChdir .message | |
113 | AllowOverride off | |
114 | ||
115 | TimeoutIdle 600 | |
116 | TimeoutNoTransfer 900 | |
117 | TimeoutStalled 300 | |
118 | TimeoutSession 3600 | |
119 | ||
120 | # ------------------------------ | |
121 | # Session | |
122 | # ------------------------------ | |
123 | ||
124 | # To cause every FTP user to be "jailed" (chrooted) into their home | |
125 | # directory, uncomment this line. | |
126 | DefaultRoot ~ web,!users | |
127 | ||
128 | DenyFilter \*.*/ | |
129 | ListOptions "-A +R" strict | |
130 | UseGlobbing off | |
131 | ||
132 | ShowSymlinks on | |
133 | TimesGMT on | |
134 | ||
135 | # ------------------------------ | |
136 | # Up- & Download | |
137 | # ------------------------------ | |
138 | ||
139 | # having to delete before uploading is a pain ;) | |
140 | AllowOverwrite on | |
141 | AllowRetrieveRestart on | |
142 | HiddenStores on | |
143 | DeleteAbortedStores on | |
144 | #AllowStoreRestart off # is contrary to "DeleteAbortedStores" | |
145 | ||
146 | # ------------------------------ | |
147 | # Logging | |
148 | # ------------------------------ | |
149 | ||
150 | WtmpLog off | |
151 | TransferLog /var/log/proftpd/xferlog | |
152 | ||
153 | # Record all logins | |
154 | ExtendedLog /var/log/proftpd/auth.log AUTH auth | |
155 | ||
156 | # Logging file/dir access | |
157 | ExtendedLog /var/log/proftpd/access.log WRITE,READ write | |
158 | ||
159 | # Paranoia logging level.... | |
160 | ExtendedLog /var/log/proftpd/paranoid.log ALL default | |
161 | ||
162 | # SQLLogFile | |
163 | #SQLLogFile /var/log/proftpd/SQL.log | |
164 | </Global> | |
165 | ||
166 | # Bar use of SITE CHMOD by default | |
167 | <Limit SITE_CHMOD> | |
168 | DenyAll | |
169 | </Limit> | |
170 | ||
171 | ##### | |
172 | # Include other confs | |
173 | #Include /etc/proftpd/conf.d/*.conf | |
174 | ||
175 | ##### | |
176 | ||
177 | # ------------------------------ | |
178 | # Anonymous Settings | |
179 | # ------------------------------ | |
180 | # A basic anonymous configuration, no upload directories. If you do not | |
181 | # want anonymous users, simply delete this entire <Anonymous> section. | |
182 | <Anonymous ~ftp> | |
183 | # Limit LOGIN | |
184 | #<Limit LOGIN> | |
185 | # Order Allow,Deny | |
186 | # Allow from .examples.net,113.141.114.1 | |
187 | # Deny from All | |
188 | #</Limit> | |
189 | ||
190 | # Limit WRITE everywhere in the anonymous chroot | |
191 | <Limit WRITE> | |
192 | DenyAll | |
193 | </Limit> | |
194 | ||
195 | # LoginPasswordPrompt -- Configure to display the passwort prompt or not | |
196 | LoginPasswordPrompt off | |
197 | ||
198 | # DirFakeMode -- Hide real file/directory permissions | |
199 | DirFakeMode 0640 | |
200 | ||
201 | # DirFakeUser -- Hide real file/directory owner | |
202 | DirFakeUser On | |
203 | ||
204 | # DirFakeGroup -- Hide real file/directory group | |
205 | DirFakeGroup On | |
206 | ||
207 | # We want clients to be able to login with "anonymous" as well as "ftp" | |
208 | UserAlias anonymous ftp | |
209 | ||
210 | # Limit the maximum number of anonymous logins | |
211 | MaxClients 10 | |
212 | #MaxRetrieveFileSize 512 Mb | |
213 | ||
214 | # Limit Up/Downloads to 255 K/sec | |
215 | #TransferRate APPE,RETR,STOR,STOU 255 | |
216 | ||
217 | # We want 'welcome.msg' displayed at login, and '.message' displayed | |
218 | # in each newly chdired directory. | |
219 | DisplayLogin welcome.msg | |
220 | DisplayChdir .message | |
221 | ||
222 | #<Directory pub> | |
223 | # <Limit ALL> | |
224 | # Order Allow,Deny | |
225 | # Allow from .examples.net,113.141.114.1 | |
226 | # Deny from All | |
227 | # </Limit> | |
228 | #</Directory> | |
229 | ||
230 | # An upload directory that allows storing files but not retrieving | |
231 | # or creating directories. | |
232 | #<Directory uploads/*> | |
233 | # <Limit READ> | |
234 | DenyAll | |
235 | # </Limit> | |
236 | # <Limit STOR> | |
237 | AllowAll | |
238 | # </Limit> | |
239 | #</Directory> | |
240 | </Anonymous> |