• 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.

Input Unable to delete web user? Here's how to work around it

websavers

Regular Pleskian
Server operating system version
CentOS 7.9.2009
Plesk version and microupdate number
Version 18.0.50 Update #2
Note this applies only to web users. They appear under FTP Accounts, but are not deleteable from there. If you click on the user then try to delete it from the Plesk GUI while you're using PHP-FPM, it will say:

Unable to execute usermng: usermng: /usr/sbin/userdel execution failed:
userdel: user ACCOUNT is currently used by process PID
usermng: Unable to delete user:

To work around this, run the following from shell:

Bash:
systemctl stop plesk-php81-fpm && systemctl stop plesk-php80-fpm && systemctl stop plesk-php74-fpm

/usr/local/psa/bin/webuser --remove $WEBUSERNAME -domain $DOMAIN

systemctl start plesk-php81-fpm && systemctl start plesk-php80-fpm && systemctl start plesk-php74-fpm

Notes: Do not forget to enter the correct username and the primary domain from the subscription in the middle line. If the web user belongs to a subscription that has any domains within it using a different PHP-FPM version than those above, edit the first and last lines to stop and start those PHP versions.
 
Back
Top