Luana Premoli

Well-Known Member
Oct 3, 2016
68
7
8
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: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 21:17:19 server212 pure-ftpd: ([email protected]@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: ([email protected]@179.111.233.76) [INFO] Logout.
/var/log/messages.1.gz:May 10 21:17:38 server212 pure-ftpd: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 21:17:40 server212 pure-ftpd: ([email protected]@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: ([email protected]@179.111.233.76) [INFO] Logout.
/var/log/messages.1.gz:May 10 21:21:15 server212 pure-ftpd: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 21:21:17 server212 pure-ftpd: ([email protected]@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: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 21:23:56 server212 pure-ftpd: ([email protected]@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: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 21:25:28 server212 pure-ftpd: ([email protected]@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: ([email protected]@179.111.233.76) [INFO] Logout.
/var/log/messages.1.gz:May 10 21:30:45 server212 pure-ftpd: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 21:30:47 server212 pure-ftpd: ([email protected]@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: ([email protected]@177.46.138.208) [INFO] Logout.
/var/log/messages.1.gz:May 10 21:31:03 server212 pure-ftpd: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 21:31:05 server212 pure-ftpd: ([email protected]@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: ([email protected]@177.46.138.208) [INFO] Logout.
/var/log/messages.1.gz:May 10 21:36:17 server212 pure-ftpd: ([email protected]@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: ([email protected]@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: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 21:48:08 server212 pure-ftpd: ([email protected]@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: ([email protected]@201.95.45.251) [INFO] Logout.
/var/log/messages.1.gz:May 10 21:48:22 server212 pure-ftpd: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 21:48:24 server212 pure-ftpd: ([email protected]@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: ([email protected]@187.75.234.69) [INFO] Logout.
/var/log/messages.1.gz:May 10 22:07:51 server212 pure-ftpd: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 22:07:53 server212 pure-ftpd: (ano[email protected]@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: ([email protected]@201.95.225.161) [INFO] Logout.
/var/log/messages.1.gz:May 10 22:08:09 server212 pure-ftpd: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 22:08:13 server212 pure-ftpd: ([email protected]@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: ([email protected]@201.95.225.161) [INFO] Logout.
/var/log/messages.1.gz:May 10 22:11:20 server212 pure-ftpd: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 22:11:22 server212 pure-ftpd: ([email protected]@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: ([email protected]@179.111.233.76) [INFO] Logout.
/var/log/messages.1.gz:May 10 22:17:18 server212 pure-ftpd: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 22:17:22 server212 pure-ftpd: ([email protected]@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: ([email protected]@179.111.233.76) [INFO] Logout.
/var/log/messages.1.gz:May 10 22:25:26 server212 pure-ftpd: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 22:25:28 server212 pure-ftpd: ([email protected]@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: ([email protected]@179.111.233.76) [INFO] Logout.
/var/log/messages.1.gz:May 10 22:30:46 server212 pure-ftpd: ([email protected]) [INFO] [email protected] is now logged in
/var/log/messages.1.gz:May 10 22:30:47 server212 pure-ftpd: ([email protected]@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: ([email protected]@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
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
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'
 

Luana Premoli

Well-Known Member
Oct 3, 2016
68
7
8
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.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
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.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
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
 

Luana Premoli

Well-Known Member
Oct 3, 2016
68
7
8
São Paulo/Brazil
cPanel Access Level
Root Administrator
Hi,

The log I need is when the checkbox under "Anonymous FTP" has change


Anonymous FTP - Version 80 Documentation - cPanel Documentation

Code:
To configure Anonymous FTP settings, perform the following steps:

Select the checkboxes for the permissions that you wish to allow.
Deselect the checkboxes for the permissions that you wish to deny.
Click Save.