- Plesk 12.0 for Linux
- Plesk 12.5 for Linux
Note: This article has the reference to the issue with the fix available:
- #PPPM-4225 "Support issue #PPPM-4225"
- Plesk Onyx 17.0 Release 15 November 2016
Unable to remove additional FTP account in Domains > example.com > FTP Access:
PLESK_ERROR: Unable to execute usermng: usermng: /usr/sbin/userdel execution failed:
userdel: user exampleuser is currently used by process 5022
usermng: Unable to delete user:
PHP as FPM application is selected in Domains > example.com > PHP Settings.
This is Plesk bug with ID #PPPM-4225 that was fixed in Plesk Onyx.
Upgrade to the latest Plesk version using the guide "How to upgrade Plesk to the next release".
If an upgrade is not possible, as a workaround, do the following:
Go to Domains > example.com > PHP Settings and switch PHP handler to the version with CGI/FastCGI support.
Go to Domains > example.com > FTP Access and remove the account.
Switch back to PHP as FPM application in Domains > example.com > PHP Settings.
If the steps above did not help remove this account directly from the server with the below steps:
Connect to the server via SSH.
Backup Plesk database:
# plesk db dump psa > /root/psa_dump.`date +%F.%s`.sql;
Find ID of the necessary account:
# plesk db "select account_id from sys_users where login='exampleuser'"
| account_id |
| 11 |
Remove the account from the database:
# plesk db "delete from accounts where id=11"
# plesk db "delete from sys_users where login='exampleuser'"
Remove the user from the system:
# /usr/sbin/userdel exampleuser