• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue User not fully deleted

Fabian H

Basic Pleskian
Hi there,

I just found that the owner of all files in my subscription are not owned by the systemowner of the subscription but a additional ftp user for a subdomain.
I just removed that ftp user in hope it would update the file ownerships. It didn't.
There is an error in the panel log file:
Code:
1699963:624ab4c6982bf ERR [panel.ui] Unable to execute usermng: usermng: /usr/sbin/userdel execution failed:<br />
userdel: user ldb is currently used by process 1858065<br />
usermng: Unable to delete user: <br />
<br><a href='http://kb.plesk.com/plesk-error/search?metaId=8c16f4523bcc1ebaa84656a9bb46e39b&messageId=932a0fc2d4b5c35bbae1064d3b74f71e&file=Unix.php&line=261&type=PleskUtilException&version=18.0.42&message=Unable+to+execute+usermng%3A+usermng%3A+%2Fusr%2Fsbin%2Fuserdel+execution+failed%3A%0Auserdel%3A+user+ldb+is+currently+used+by+process+%0Ausermng%3A+Unable+to+delete+user%3A' target='_blank'>Search for related Knowledge Base articles</a>
[2022-04-04 11:22:07.290] 1862580:624ab8bf45141 ERR [panel] [624ab8bf450d0] Result of interface implementation call: failure: Can not find domain by GUID '96b195f7-d4a5-45c4-ba58-278356e68fc2'
[2022-04-04 11:22:07.306] 1862581:624ab8bf45cd7 ERR [panel] [624ab8bf45c4a] Result of interface implementation call: failure: Can not find domain by id 77
[2022-04-04 11:22:07.449] 1862625:624ab8bf698e0 ERR [panel] [624ab8bf6982e] Result of interface implementation call: failure: Can not find domain by id 77

So the user shouldn't be removed, but it it not shown anymore in the ftp users list in plesk.
Might be related to https://support.plesk.com/hc/en-us/...led-usermod-user-is-currently-used-by-process, but I cannot do the workaround as the user is not in the list.

Plesk repair fs is doing nothing, even like plesk repair web.

So I checked with getent passwd, The user is still existing.
I checked the database, with select * from sys_users WHERE login = "ldb"; (ldb is the additional ftp user), and it shows the home of the subdomain.
So I deleted the subdomain as it is not needed anymore, but the user is still there.
Any ideas what I can try to fix the ownership of the subscription? I better not do chown, maybe it breaks anything.

Thanks in advance!
 
Hi @IgorG ,
thanks for your quick reply.
As in the topic, I already found that kb article, but I cannot retry as the user is not shown in the list. Also suspending and activating the subscription does not work at all.
 
If the KB article didn't help, I suggest you contact Plesk Support Team. Investigation directly on your server is required.
 
If the KB article didn't help, I suggest you contact Plesk Support Team. Investigation directly on your server is required.
Maybe I misunderstand the kb article... But I cannot remove the user after changing the php handler, because it is not shown in the ftp user list.
 
I just found that the owner of all files in my subscription are not owned by the systemowner of the subscription but a additional ftp user for a subdomain.
Have you looked at the numeric user id?
All additional accounts under a subscription are created with the same user ID.
Normally the user name shown is the first one with that ID in /etc/p *** wd. So check whether your p *** wd file has been reordered somehow.
 
Have you looked at the numeric user id?
All additional accounts under a subscription are created with the same user ID.
Normally the user name shown is the first one with that ID in /etc/p *** wd. So check whether your p *** wd file has been reordered somehow.
Thanks for your suggestion!
No, in passwd file, the primary system user is the first and the user "fhw" the second.
 
But the username listed as owner has the same id as the system user? Then it's only a cosmetic problem because what counts wrt permissions is the id.
 
Hi there,

I just found that the owner of all files in my subscription are not owned by the systemowner of the subscription but a additional ftp user for a subdomain.
I just removed that ftp user in hope it would update the file ownerships. It didn't.
There is an error in the panel log file:
Code:
1699963:624ab4c6982bf ERR [panel.ui] Unable to execute usermng: usermng: /usr/sbin/userdel execution failed:<br />
userdel: user ldb is currently used by process 1858065<br />
usermng: Unable to delete user: <br />
<br><a href='http://kb.plesk.com/plesk-error/search?metaId=8c16f4523bcc1ebaa84656a9bb46e39b&messageId=932a0fc2d4b5c35bbae1064d3b74f71e&file=Unix.php&line=261&type=PleskUtilException&version=18.0.42&message=Unable+to+execute+usermng%3A+usermng%3A+%2Fusr%2Fsbin%2Fuserdel+execution+failed%3A%0Auserdel%3A+user+ldb+is+currently+used+by+process+%0Ausermng%3A+Unable+to+delete+user%3A' target='_blank'>Search for related Knowledge Base articles</a>
[2022-04-04 11:22:07.290] 1862580:624ab8bf45141 ERR [panel] [624ab8bf450d0] Result of interface implementation call: failure: Can not find domain by GUID '96b195f7-d4a5-45c4-ba58-278356e68fc2'
[2022-04-04 11:22:07.306] 1862581:624ab8bf45cd7 ERR [panel] [624ab8bf45c4a] Result of interface implementation call: failure: Can not find domain by id 77
[2022-04-04 11:22:07.449] 1862625:624ab8bf698e0 ERR [panel] [624ab8bf6982e] Result of interface implementation call: failure: Can not find domain by id 77

So the user shouldn't be removed, but it it not shown anymore in the ftp users list in plesk.
Might be related to https://support.plesk.com/hc/en-us/...led-usermod-user-is-currently-used-by-process, but I cannot do the workaround as the user is not in the list.

Plesk repair fs is doing nothing, even like plesk repair web.

So I checked with getent passwd, The user is still existing.
I checked the database, with select * from sys_users WHERE login = "ldb"; (ldb is the additional ftp user), and it shows the home of the subdomain.
So I deleted the subdomain as it is not needed anymore, but the user is still there.
Any ideas what I can try to fix the ownership of the subscription? I better not do chown, maybe it breaks anything.

Thanks in advance!
clear the cache and then try again, I would works
 
Back
Top