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