• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Forwarded to devs FTP user delete failed

B4c4rd1

Regular Pleskian
Username: B4c4rd1

TITLE

FTP user DELETE failed

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk Obsidian 18.0.34, CentOS Linux 8.3.2011

PROBLEM DESCRIPTION

When I create an FTP user, log in via FTP and then delete the FTP user in Plesk, I get the following error message:

Code:
Unable to execute usermng: usermng: /usr/sbin/userdel execution failed:
userdel: user test is currently used by process 3064733
usermng: Unable to delete user:

The user "Test" has been created. Sometimes it happens during the deletion process that the deletion works without any problem (This must be tested several times). The logged in user must block the command "/usr/sbin/userdel".

STEPS TO REPRODUCE

  1. Create an FTP account with the name Test.
  2. Log in with an FTP program (so that the user is blocked)
  3. Try to delete the user via the Plesk Panel

ACTUAL RESULT

Sometimes it comes to the error:


Code:
Unable to execute usermng: usermng: /usr/sbin/userdel execution failed:
userdel: user test is currently used by process 3064733
usermng: Unable to delete user:

If this error occurs, the user must be deleted manually. Also the account must be removed from the table: "sys_users".

EXPECTED RESULT

The account should be deleted accordingly.

ANY ADDITIONAL INFORMATION

/usr/sbin/userdel -f helps to delete the user.

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
But it is about a FTP user not the system user.

1616683444143.png

The error only occurs with CentOS 8 and CloudLinux 8.
 
Hello @IgorG ,

Thank you for the information. Although my test is not about the main user, but that is obviously related. I noticed that you log in with the FTP user via SSH although you have specified the main user (with selected BASH not chrooted).

Code:
Main user: test
Additional FTP user: test1

su test
test1@SERVER ~ #

If you delete the FTP user "test1" via the Plesk panel, the user "test" is automatically logged out of the shell and all processes are interrupted (Tested under bash chroooted and bash)

Is the error already known in the constellation?
 
Developers informed me that they cannot reproduce the issue. Additional FTP accounts are removed correctly.
The issue was fixed as PPPM-4225 in Plesk 17.0.11.
So, I'd suggest you contact Plesk Support Team for fixing this issue directly on your server.
 
Developers informed me that they cannot reproduce the issue. Additional FTP accounts are removed correctly.
The issue was fixed as PPPM-4225 in Plesk 17.0.11.
So, I'd suggest you contact Plesk Support Team for fixing this issue directly on your server.
This issue can be reproduced.

OS
CentOS Linux 7.9.2009 (Core)
Product
Plesk Obsidian
Version 18.0.39 Update #1

System user was running a cron task.

Had to remove the user from psa/sys_users table and #userdel to re-migrate the subscription.
 
Back
Top