Re: [Proftpd-user] Issue configuring ProFTPd
Dieter Bloms via Proftp-user <[email protected]>
| Newsgroups | gmane.network.proftpd.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Nikolaos,
On Sat, Sep 19, Nikolaos Milas wrote:
> Users logging in are forced to uid:gid of wftpuser:nginx (see list below).
are you sure this is done with the new installation ?
Please do a login and have a look at the process list.
Each login spawns a new proftpd process, which should have the right
useruid (in this case the uid of wftpuser and the gid of nginx.
> 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)"!
Maybe the ftp user where chrooted in another location.
Upload a file via ftp and find it on your server to be sure you are in
the right directory on the server.
> 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
what does the ftp file listing looks like via ftp ?
> 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!
I hope its help to you in thr right way.
PS.: is selinux or appamore enabled and blocks the access ?
--
regards
Dieter
--
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
From field.
_______________________________________________
ProFTPD Users List <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html