Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Anonymous FTP is Disabled Issue

Discussion in 'General Discussion' started by Luana Premoli, May 17, 2019.

  1. Luana Premoli

    Luana Premoli Well-Known Member

    Joined:
    Oct 3, 2016
    Messages:
    54
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    São Paulo/Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    We have a shared server, where only one client complains that from time to time the Anonymous FTP user is disabled.

    We tried to find where the settings are saved when the anonymous user is activated for a domain, but we can not find it.

    The only information we find:

    /var/log/messages


    The only information we found for the day the customer complained:

    Code:
    /var/log/messages.1.gz:May 10 21:17:16 server212 pure-ftpd: (?@179.111.233.76) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 21:17:19 server212 pure-ftpd: (anonymous@example.com.br@179.111.233.76) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 21:17:20 server212 pure-ftpd: (anonymous@example.com.br@179.111.233.76) [INFO] Logout.
    /var/log/messages.1.gz:May 10 21:17:38 server212 pure-ftpd: (?@179.111.233.76) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 21:17:40 server212 pure-ftpd: (anonymous@example.com.br@179.111.233.76) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 21:17:41 server212 pure-ftpd: (anonymous@example.com.br@179.111.233.76) [INFO] Logout.
    /var/log/messages.1.gz:May 10 21:21:15 server212 pure-ftpd: (?@187.57.173.149) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 21:21:17 server212 pure-ftpd: (anonymous@example.com.br@187.57.173.149) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 21:23:54 server212 pure-ftpd: (?@187.57.173.149) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 21:23:56 server212 pure-ftpd: (anonymous@example.com.br@187.57.173.149) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 21:25:26 server212 pure-ftpd: (?@179.111.233.76) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 21:25:28 server212 pure-ftpd: (anonymous@example.com.br@179.111.233.76) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 21:25:28 server212 pure-ftpd: (anonymous@example.com.br@179.111.233.76) [INFO] Logout.
    /var/log/messages.1.gz:May 10 21:30:45 server212 pure-ftpd: (?@177.46.138.208) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 21:30:47 server212 pure-ftpd: (anonymous@example.com.br@177.46.138.208) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 21:30:47 server212 pure-ftpd: (anonymous@example.com.br@177.46.138.208) [INFO] Logout.
    /var/log/messages.1.gz:May 10 21:31:03 server212 pure-ftpd: (?@177.46.138.208) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 21:31:05 server212 pure-ftpd: (anonymous@example.com.br@177.46.138.208) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 21:31:05 server212 pure-ftpd: (anonymous@example.com.br@177.46.138.208) [INFO] Logout.
    /var/log/messages.1.gz:May 10 21:36:17 server212 pure-ftpd: (anonymous@example.com.br@187.57.173.149) [INFO] Timeout - try typing a little faster next time
    /var/log/messages.1.gz:May 10 21:38:56 server212 pure-ftpd: (anonymous@example.com.br@187.57.173.149) [INFO] Timeout - try typing a little faster next time
    /var/log/messages.1.gz:May 10 21:48:06 server212 pure-ftpd: (?@201.95.45.251) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 21:48:08 server212 pure-ftpd: (anonymous@example.com.br@201.95.45.251) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 21:48:09 server212 pure-ftpd: (anonymous@example.com.br@201.95.45.251) [INFO] Logout.
    /var/log/messages.1.gz:May 10 21:48:22 server212 pure-ftpd: (?@187.75.234.69) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 21:48:24 server212 pure-ftpd: (anonymous@example.com.br@187.75.234.69) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 21:48:24 server212 pure-ftpd: (anonymous@example.com.br@187.75.234.69) [INFO] Logout.
    /var/log/messages.1.gz:May 10 22:07:51 server212 pure-ftpd: (?@201.95.225.161) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 22:07:53 server212 pure-ftpd: (anonymous@example.com.br@201.95.225.161) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 22:07:53 server212 pure-ftpd: (anonymous@example.com.br@201.95.225.161) [INFO] Logout.
    /var/log/messages.1.gz:May 10 22:08:09 server212 pure-ftpd: (?@201.95.225.161) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 22:08:13 server212 pure-ftpd: (anonymous@example.com.br@201.95.225.161) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 22:08:13 server212 pure-ftpd: (anonymous@example.com.br@201.95.225.161) [INFO] Logout.
    /var/log/messages.1.gz:May 10 22:11:20 server212 pure-ftpd: (?@179.111.233.76) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 22:11:22 server212 pure-ftpd: (anonymous@example.com.br@179.111.233.76) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 22:11:22 server212 pure-ftpd: (anonymous@example.com.br@179.111.233.76) [INFO] Logout.
    /var/log/messages.1.gz:May 10 22:17:18 server212 pure-ftpd: (?@179.111.233.76) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 22:17:22 server212 pure-ftpd: (anonymous@example.com.br@179.111.233.76) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 22:17:22 server212 pure-ftpd: (anonymous@example.com.br@179.111.233.76) [INFO] Logout.
    /var/log/messages.1.gz:May 10 22:25:26 server212 pure-ftpd: (?@179.111.233.76) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 22:25:28 server212 pure-ftpd: (anonymous@example.com.br@179.111.233.76) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 22:25:28 server212 pure-ftpd: (anonymous@example.com.br@179.111.233.76) [INFO] Logout.
    /var/log/messages.1.gz:May 10 22:30:46 server212 pure-ftpd: (?@177.46.138.208) [INFO] anonymous@example.com.br is now logged in
    /var/log/messages.1.gz:May 10 22:30:47 server212 pure-ftpd: (anonymous@example.com.br@177.46.138.208) [ERROR] Can't open update.ini: Permission denied
    /var/log/messages.1.gz:May 10 22:30:48 server212 pure-ftpd: (anonymous@example.com.br@177.46.138.208) [INFO] Logout.

    Can you guide us in what files we can look at if anonymous FTP is disabled from time to time?

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,124
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    The ftp service outputs logs to /var/log/messages (as you're aware) you'd need to check there when they're saying it occurs. You can check the configuration by going to WHM>>Service Configuration>>FTP Server Configuration

    The configuration file for pureftpd is at /var/cpanel/conf/pureftpd though this is the same data essentially that is in WHM though you might try increasing the logging, by default it's set to no for verbosity:

    Code:
    VerboseLog: 'no'
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Luana Premoli

    Luana Premoli Well-Known Member

    Joined:
    Oct 3, 2016
    Messages:
    54
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    São Paulo/Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    I activated VerboseLog in the file "/var/cpanel/conf/pureftpd/main, and through cPanel I deactivated the option "Allow anonymous access to" ftp://ftp.example.com.br "." but even with verbose enabled, nothing was shown in /var/log/messages


    Several status changes are recorded in "/usr/local/cpanel/logs/access_log" as creating or removing e-mail accounts, for example.

    Is there a log where I save the change from enabled to disabled when it comes to anonymous FTP?


    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,124
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Luana Premoli
    I don't believe any log is going to tell you that specifically, what I was hoping for is if they had issues again, you would at the very least get a log entry detailing the error.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Luana Premoli

    Luana Premoli Well-Known Member

    Joined:
    Oct 3, 2016
    Messages:
    54
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    São Paulo/Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    When anonymous FTP is enabled, what is the file that setting is recorded?

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,124
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Luana Premoli

    That would be the pure-ftpd configuration file:

    Code:
    /etc/pure-ftpd.conf
    This is an example of Anonymous connections being disabled:
    Code:
    # Disallow anonymous connections. Only accept authenticated users.
    
    NoAnonymous yes
    This should be managed through WHM>>Service Configuration>>FTP Server Configuration
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Luana Premoli

    Luana Premoli Well-Known Member

    Joined:
    Oct 3, 2016
    Messages:
    54
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    São Paulo/Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    But in this file, it shows deactivation for the whole server.

    Would not it have one file per account individually?

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,124
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Anonymous FTP is enabled or disabled for the entire server not per account.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice