cPanel don't create FTP accounts. Error saving Pure-FTPD settings on WHM after upgrade 86 to 88

Operating System & Version
CENTOS 7.8
cPanel & WHM Version
v88.0.6

logocomunicacao

Registered
Jun 6, 2020
1
0
1
Brasil
cPanel Access Level
Root Administrator
It is not possible to create FTP accounts in cpanel, an error is displayed:

"The system failed to set the permissions on one or more immutable (+ i) filesystem nodes to“ 0600 ”(as EUID: 0, EGID: 0) because of the following error: Operation not permitted"


In WHM, after saving the settings, an error message is displayed when updating FTP passwords:



Storing new settings
Changes stored successfully.

Updating ftp passwords
[2020-06-06 16:27:15 -0300] warn [ftpupdate] Error encountered while processing emifcomb: Cpanel::Exception::IO::RenameError/(XID mcb46q) O sistema não conseguiu renomear “/etc/proftpd/.tmp.41d7d.emifcomb” como “/etc/proftpd/emifcomb” devido a um erro: Operation not permitted
The system failed to rename “/etc/proftpd/.tmp.41d7d.emifcomb” to “/etc/proftpd/emifcomb” because of an error: Operation not permitted
at /usr/local/cpanel/Cpanel/Autodie/CORE/rename.pm line 29.
Cpanel::Autodie::rename("/etc/proftpd/.tmp.41d7d.emifcomb", "/etc/proftpd/emifcomb") called at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 230
Cpanel::FileUtils::Write::_write_to_tmpfile("/etc/proftpd/emifcomb", "emifcomb:\$6\$uSjnVPPZzTWFsfqA\$cu/jWzBUOCisyiyVB09.kJK0keuLBGKn"..., 416, CODE(0x2669560)) called at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 127
Cpanel::FileUtils::Write::eek:verwrite("/etc/proftpd/emifcomb", ..., 416) called at /usr/local/cpanel/bin/ftpupdate line 260
bin::ftpupdate::__ANON__() called at /usr/local/cpanel/3rdparty/perl/530/lib/perl5/cpanel_lib/Try/Tiny.pm line 97
eval {...} called at /usr/local/cpanel/3rdparty/perl/530/lib/perl5/cpanel_lib/Try/Tiny.pm line 88
Try::Tiny::try(CODE(0x2900f50), Try::Tiny::Catch=REF(0x2900ad0), Try::Tiny::Finally=REF(0x263e020)) called at /usr/local/cpanel/bin/ftpupdate line 288
bin::ftpupdate::processuser(ARRAY(0x28db588), HASH(0x272ae28)) called at /usr/local/cpanel/bin/ftpupdate line 116
bin::ftpupdate::script() called at /usr/local/cpanel/bin/ftpupdate line 49
at /usr/local/cpanel/bin/ftpupdate line 284.
bin::ftpupdate::__ANON__(Cpanel::Exception::IO::RenameError=HASH(0x2a5db90)) called at /usr/local/cpanel/3rdparty/perl/530/lib/perl5/cpanel_lib/Try/Tiny.pm line 118
Try::Tiny::try(CODE(0x2900f50), Try::Tiny::Catch=REF(0x2900ad0), Try::Tiny::Finally=REF(0x263e020)) called at /usr/local/cpanel/bin/ftpupdate line 288
bin::ftpupdate::processuser(ARRAY(0x28db588), HASH(0x272ae28)) called at /usr/local/cpanel/bin/ftpupdate line 116
bin::ftpupdate::script() called at /usr/local/cpanel/bin/ftpupdate line 49
[2020-06-06 16:27:15 -0300] warn [ftpupdate] Error encountered while processing cofrinho: Cpanel::Exception::IO::RenameError/(XID ry7jbt) O sistema não conseguiu renomear “/etc/proftpd/.tmp.240b.cofrinho” como “/etc/proftpd/cofrinho” devido a um erro: Operation not permitted
The system failed to rename “/etc/proftpd/.tmp.240b.cofrinho” to “/etc/proftpd/cofrinho” because of an error: Operation not permitted
at /usr/local/cpanel/Cpanel/Autodie/CORE/rename.pm line 29.
Cpanel::Autodie::rename("/etc/proftpd/.tmp.240b.cofrinho", "/etc/proftpd/cofrinho") called at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 230
Cpanel::FileUtils::Write::_write_to_tmpfile("/etc/proftpd/cofrinho", ..., 416, CODE(0x2669560)) called at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 127
Cpanel::FileUtils::Write::eek:verwrite("/etc/proftpd/cofrinho", ..., 416) called at /usr/local/cpanel/bin/ftpupdate line 260
bin::ftpupdate::__ANON__() called at /usr/local/cpanel/3rdparty/perl/530/lib/perl5/cpanel_lib/Try/Tiny.pm line 97
eval {...} called at /usr/local/cpanel/3rdparty/perl/530/lib/perl5/cpanel_lib/Try/Tiny.pm line 88
Try::Tiny::try(CODE(0x2900ec0), Try::Tiny::Catch=REF(0x29011c0), Try::Tiny::Finally=REF(0x28e7570)) called at /usr/local/cpanel/bin/ftpupdate line 288
bin::ftpupdate::processuser(ARRAY(0x28e2288), HASH(0x272ae28)) called at /usr/local/cpanel/bin/ftpupdate line 116
bin::ftpupdate::script() called at /usr/local/cpanel/bin/ftpupdate line 49
at /usr/local/cpanel/bin/ftpupdate line 284.
bin::ftpupdate::__ANON__(Cpanel::Exception::IO::RenameError=HASH(0x2a5db78)) called at /usr/local/cpanel/3rdparty/perl/530/lib/perl5/cpanel_lib/Try/Tiny.pm line 118
Try::Tiny::try(CODE(0x2900ec0), Try::Tiny::Catch=REF(0x29011c0), Try::Tiny::Finally=REF(0x28e7570)) called at /usr/local/cpanel/bin/ftpupdate line 288
bin::ftpupdate::processuser(ARRAY(0x28e2288), HASH(0x272ae28)) called at /usr/local/cpanel/bin/ftpupdate line 116
bin::ftpupdate::script() called at /usr/local/cpanel/bin/ftpupdate line 49

[2020-06-06 16:27:15 -0300] warn [ftpupdate] Could not write to /etc/proftpd/passwd.vhosts at /usr/local/cpanel/bin/ftpupdate line 379.
bin::ftpupdate::__ANON__(Cpanel::Exception::IO::RenameError=HASH(0x2d29840)) called at /usr/local/cpanel/3rdparty/perl/530/lib/perl5/cpanel_lib/Try/Tiny.pm line 118
Try::Tiny::try(CODE(0x28e3850), Try::Tiny::Catch=REF(0x2a5da88)) called at /usr/local/cpanel/bin/ftpupdate line 383
bin::ftpupdate::write_vhosts_and_cache(__CPANEL_HIDDEN__, HASH(0x272ae28)) called at /usr/local/cpanel/bin/ftpupdate line 121
bin::ftpupdate::script() called at /usr/local/cpanel/bin/ftpupdate line 49
Updating FTP passwords for all users
FTP password files updated.

Restarting Pure-FTPD

Ftp Server...Waiting for “pureftpd” to restart ………waiting for “pureftpd” to initialize ………finished.



Service Status

pure-ftpd (pure-ftpd (SERVER)) is running as root with PID 22388 (systemd+/proc check method).



Startup Log

Jun 06 16:27:15 [redacted] systemd[1]: Started Pure-FTPd.



pureftpd restarted successfully.


...Done


Moderator note: redacted server hostname.
 

SamuelM

Technical Analyst Team Lead
Nov 20, 2019
196
41
103
USA
cPanel Access Level
Root Administrator
Hello @logocomunicacao

Thank you for contacting cPanel! It appears that there are some files with the immutable attribute in the /etc/proftpd directory. Please run the following commands and reply with the results:

Code:
lsattr -d /etc/proftpd
lsattr /etc/proftpd/emifcomb
lsattr /etc/proftpd/cofrinho
lsattr /etc/proftpd/passwd.vhosts

Best regards