• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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