• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Can't delete FTP user

cmaxwell

Regular Pleskian
Hello,

On Plesk 11.5.30 I just tried to delete an additional FTP user and got an error in the panel saying that the user could not be deleted as it's currently in use (don't recall the exact message).

The additional FTP user is now no longer listed in the panel, but the user account still exists in the /etc/passwd file.

When I use userdel to delete the user manually I get the following error:

Code:
userdel testuser
userdel: user testuser is currently used by process 11180

Checking what process 11180 is:

Code:
ps aux | grep 11180
fcl      11180 22.6  0.1 389932 114484 ?       S    13:37   0:02 /usr/bin/php-cgi -c /var/www/vhosts/system/domain.com/etc/php.ini

Any ideas how I can delete the user account?
 
Thanks for your reply, IgorG.

Unfortunately this doesn't seem to be the problem.

We are using Plesk 11.5 but the KB article is for Plesk 12.5. However, we ran the suggested steps but this didn't help:

Code:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -e "delete from accounts where id=32"
mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -e "delete from sys_users where login='testuser'"
mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -e "select account_id from sys_users where login='testuser'"
userdel testuser
userdel: user testuser is currently used by process 8679

ps aux | grep 8679
fcl       8679  0.4  0.0 340072 40824 ?        S    19:27   0:00 /usr/bin/php-cgi -c /var/www/vhosts/system/domain.com/etc/php.ini

So the sub-user FTP account is still somehow attached to the php-cgi process above.

Any ideas?
 
Back
Top