gennolo
Basic Pleskian
I am on Centos 7.2 / Plesk 12.5 box
I often create restricted FTP users related to domains to let customers doing stuff on website without viewing the actual websites.
It happens sometimes that when I try to delete those FTP accounts from Domains -> FTP Accounts
I got an error message saying that that "user cannot be deleted because being used by a process".
This operation lead to a Plesk inconsistency because :
- The user is equally removed from Plesk FTP users database (it is not listed anymore after first deletion)
- The user is still able to do FTP connections and of course is not removed from etc/passwd
Doing a manual shell # userdel xxxx
return me the same error :
userdel: user xxxx is currently used by process 1433
Doing ps auxf | grep 1433
1433 12.8 2.0 597776 80680 ? R 11:12 0:12 | \_ /opt/plesk/php/5.6/bin/php-cgi -c /var/www/vhosts/system/domain_name.tld/etc/php.ini
So it appears that PHP is locking the created FTP users in some way.
How to deal with it ? How can I safely remove those users without restarting PHP / webserver ?
I often create restricted FTP users related to domains to let customers doing stuff on website without viewing the actual websites.
It happens sometimes that when I try to delete those FTP accounts from Domains -> FTP Accounts
I got an error message saying that that "user cannot be deleted because being used by a process".
This operation lead to a Plesk inconsistency because :
- The user is equally removed from Plesk FTP users database (it is not listed anymore after first deletion)
- The user is still able to do FTP connections and of course is not removed from etc/passwd
Doing a manual shell # userdel xxxx
return me the same error :
userdel: user xxxx is currently used by process 1433
Doing ps auxf | grep 1433
1433 12.8 2.0 597776 80680 ? R 11:12 0:12 | \_ /opt/plesk/php/5.6/bin/php-cgi -c /var/www/vhosts/system/domain_name.tld/etc/php.ini
So it appears that PHP is locking the created FTP users in some way.
How to deal with it ? How can I safely remove those users without restarting PHP / webserver ?