[Proftpd-user] Issue configuring ProFTPd
Nikolaos Milas <[email protected]>
| Newsgroups | gmane.network.proftpd.user |
|---|---|
| Organization | National Observatory of Athens |
| Message-ID | <[email protected]> |
Hello,
I am trying to configure ProFTPd v1.3.6e on CentOS 8 (actually
replicating older configs from earlier versions of ProFTPd).
I have already earlier versions of ProFTPd running on CentOS 6 and
CentOS 7 for a long time without issues, but this time I am having a
hard time.
It's an installation with ldap-based authentication (using mod_ldap),
and other modules.
Users logging in are forced to uid:gid of wftpuser:nginx (see list below).
LDAP-based authentication works but I am having several problems. When
connected to the FTP Server using account abc, I cannot download files
from it, despite everything seems OK (ownerships & permissions).
In fact, I can upload / create files & directories, but I cannot
download (or delete or change) anything on the server: I am getting the
message "No such file or directory)"!
Here is the listing of the account home dir (a typical Wordpress
installation):
--------------------------------------------------------------------------------------------
drwxr-x--- 6 wftpuser nginx 4096 Sep 19 21:29 .
drwxr-xr-x 4 wftpuser nginx 48 Sep 18 18:22 ..
-rw-r----- 1 wftpuser nginx 113459 Aug 13 15:36 favicon.ico
-rw-r----- 1 wftpuser nginx 405 Aug 13 15:34 index.php
-rw-r----- 1 wftpuser nginx 19915 Aug 13 15:34 license.txt
-rw-r----- 1 wftpuser nginx 7278 Aug 13 15:36 readme.html
drwxr-x--- 2 wftpuser nginx 6 Sep 19 21:29 test
-rw-r----- 1 wftpuser nginx 6912 Aug 13 15:34 wp-activate.php
drwxr-x--- 9 wftpuser nginx 4096 Aug 13 15:34 wp-admin
-rw-r----- 1 wftpuser nginx 351 Aug 13 15:34 wp-blog-header.php
-rw-r----- 1 wftpuser nginx 2332 Aug 13 15:36 wp-comments-post.php
-rw-r----- 1 wftpuser nginx 3030 Aug 13 15:36 wp-config.php
drwxr-x--- 9 wftpuser nginx 163 Aug 13 15:36 wp-content
-rw-r----- 1 wftpuser nginx 3940 Aug 13 15:34 wp-cron.php
drwxr-x--- 21 wftpuser nginx 8192 Aug 13 15:36 wp-includes
-rw-r----- 1 wftpuser nginx 2496 Aug 13 15:34 wp-links-opml.php
-rw-r----- 1 wftpuser nginx 3300 Aug 13 15:36 wp-load.php
-rw-r----- 1 wftpuser nginx 47874 Aug 13 15:36 wp-login.php
-rw-r----- 1 wftpuser nginx 8509 Aug 13 15:34 wp-mail.php
-rw-r----- 1 wftpuser nginx 19396 Aug 13 15:34 wp-settings.php
-rw-r----- 1 wftpuser nginx 31111 Aug 13 15:36 wp-signup.php
-rw-r----- 1 wftpuser nginx 4755 Aug 13 15:36 wp-trackback.php
-rw-r----- 1 wftpuser nginx 3133 Aug 13 15:36 xmlrpc.php
--------------------------------------------------------------------------------------------
If I attempt to download e.g. license.txt, I am getting the message "No
such file or directory"!
(Note: In all listings below, I have changed the real public IP address
of the server to 10.10.10.30.)
The FTP client (FileZilla) shows:
Status: Starting download of /license.txt
Command: CWD /
Response: 250 CWD command successful
Command: TYPE A
Response: 200 Type set to A
Command: PASV
Response: 227 Entering Passive Mode (10,10,10,30,238,59).
Command: RETR license.txt
Response: 550 license.txt: No such file or directory
Error: Critical file transfer error
Here is the output regarding this failed transfer from trace.log (Level 10)
--------------------------------------------------------------------------------------------
2020-09-19 22:04:37,425 [7972] <fsio:8>: using vroot stat() for path
'/.ftpaccess'
2020-09-19 22:04:37,425 [7972] <binding:4>: bound address 10.10.10.30,
port 60987 to socket fd 27
2020-09-19 22:04:37,425 [7972] <event:8>: dispatching event
'core.data-listen' to mod_qos (at 0x7feecb5e24c0, use cache = false)
2020-09-19 22:04:37,425 [7972] <response:7>: response added to pending
list: 227 Entering Passive Mode (10,10,10,30,238,59).
2020-09-19 22:04:37,425 [7972] <scoreboard:3>: updating scoreboard entry
2020-09-19 22:04:37,425 [7972] <lock:9>: attempting to unlock scoreboard
fd 21 entry, offset 656
2020-09-19 22:04:37,425 [7972] <lock:9>: unlock of scoreboard fd 21
entry, offset 656 succeeded
2020-09-19 22:04:37,425 [7972] <lock:9>: attempting to unlock scoreboard
fd 21 entry, offset 656
2020-09-19 22:04:37,425 [7972] <lock:9>: unlock of scoreboard fd 21
entry, offset 656 succeeded
2020-09-19 22:04:37,425 [7972] <scoreboard:3>: finished updating
scoreboard entry
2020-09-19 22:04:37,425 [7972] <scoreboard:3>: updating scoreboard entry
2020-09-19 22:04:37,425 [7972] <lock:9>: attempting to unlock scoreboard
fd 21 entry, offset 656
2020-09-19 22:04:37,425 [7972] <lock:9>: unlock of scoreboard fd 21
entry, offset 656 succeeded
2020-09-19 22:04:37,425 [7972] <lock:9>: attempting to unlock scoreboard
fd 21 entry, offset 656
2020-09-19 22:04:37,425 [7972] <lock:9>: unlock of scoreboard fd 21
entry, offset 656 succeeded
2020-09-19 22:04:37,425 [7972] <scoreboard:3>: finished updating
scoreboard entry
2020-09-19 22:04:37,425 [7972] <command:7>: dispatching LOG_CMD command
'PASV' to mod_log.c
2020-09-19 22:04:37,425 [7972] <response:9>: flushing response list for
'PASV'
2020-09-19 22:04:37,425 [7972] <response:1>: 227 Entering Passive Mode
(10,10,10,30,238,59).
2020-09-19 22:04:37,494 [7972] <timer:7>: reset timer ID 2
('TimeoutIdle', for module 'core')
2020-09-19 22:04:37,494 [7972] <response:9>: clearing response lists
before dispatching command 'RETR'
2020-09-19 22:04:37,494 [7972] <encode:5>: decoded 'RETR' into 'RETR'
2020-09-19 22:04:37,494 [7972] <encode:5>: decoded 'license.txt' into
'license.txt'
2020-09-19 22:04:37,495 [7972] <command:7>: dispatching PRE_CMD command
'RETR license.txt' to mod_tls.c
2020-09-19 22:04:37,495 [7972] <command:7>: dispatching PRE_CMD command
'RETR license.txt' to mod_core.c
2020-09-19 22:04:37,495 [7972] <command:7>: dispatching PRE_CMD command
'RETR license.txt' to mod_core.c
2020-09-19 22:04:37,495 [7972] <command:7>: dispatching PRE_CMD command
'RETR license.txt' to mod_quotatab.c
2020-09-19 22:04:37,495 [7972] <lock:9>: attempting to read-lock
QuotaLock fd -1
2020-09-19 22:04:37,495 [7972] <command:7>: dispatching PRE_CMD command
'RETR license.txt' to mod_auth.c
2020-09-19 22:04:37,495 [7972] <command:7>: dispatching PRE_CMD command
'RETR license.txt' to mod_xfer.c
2020-09-19 22:04:37,495 [7972] <encode:5>: decoded 'license.txt' into
'license.txt'
2020-09-19 22:04:37,495 [7972] <fsio:8>: using quotatab lstat() for path
'/license.txt'
2020-09-19 22:04:37,495 [7972] <response:7>: error response added to
pending list: 550 license.txt: No such file or directory
2020-09-19 22:04:37,495 [7972] <command:7>: dispatching POST_CMD_ERR
command 'RETR license.txt' to mod_vroot.c
2020-09-19 22:04:37,495 [7972] <command:7>: dispatching POST_CMD_ERR
command 'RETR license.txt' to mod_quotatab.c
2020-09-19 22:04:37,495 [7972] <lock:9>: attempting to write-lock
QuotaLock fd -1
2020-09-19 22:04:37,495 [7972] <command:7>: dispatching POST_CMD_ERR
command 'RETR license.txt' to mod_auth.c
2020-09-19 22:04:37,495 [7972] <command:7>: dispatching LOG_CMD_ERR
command 'RETR license.txt' to mod_log.c
2020-09-19 22:04:37,495 [7972] <command:7>: dispatching LOG_CMD_ERR
command 'RETR license.txt' to mod_xfer.c
2020-09-19 22:04:37,495 [7972] <response:9>: flushing error response
list for 'RETR'
2020-09-19 22:04:37,495 [7972] <response:1>: 550 license.txt: No such
file or directory
--------------------------------------------------------------------------------------------
Could anyone please suggest any cause and solution for this issue? It is
driving me insane!
Thank you in advance.
All the best,
Nick
_______________________________________________
ProFTPD Users List <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html