• 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

Question user ftp don't delete

Pecnet

Basic Pleskian
Hello,

I created a FTP access to a developer,
he finished with his work and tried to delete the FTP account from Plesk

FTP account to property was deleted from the list of users,
but what I understand is when I connect with filezilla ftp account is still active.

When I tried to delete the account ftp I received such messages

=> Unable to execute usermng: usermng: /usr/sbin/userdel execution failed: userdel: user debuguser is currently used by process usermng: Unable to delete user:

Can you help me understand this message and also how I can really deleted this account?
Thank you
 
Hi Pecnet,

user debuguser is currently used by process usermng
"Hanging" processes, or unfinished processes may result in still existent corresponding pid - files ( pid = process identifier ). List your current corresponding pid - files with for example "ps -aux | grep usermng" and "kill"/erase leftovers with the command "kill -9 XXXX", where XXXX should be replaced with the pid-number, shown with your "ps" - command before.

Consider to use the standard "deluser USERNAME" linux command, if the previous command over the Plesk Control Panel didn't succeed as expected and control as well your panel.log for the root cause of your unexpected issue.


Sometimes, it is as well a good idea to change the log - level, to get more informations in psa - log - files:



Consider as well to control the "/etc/passwd" - file, if you experiencethe unexpected issue, that a deleted FTP - user is still able to login:

grep USERNAME /etc/passwd
 
Hello and thank you for your help,

I have found in the "/etc/passwd"
and delete the line input from the user,

it's good he is disable

Can you explain me this line that I remove

"debuguser:x:10013:1003::/var/www/vhosts/example.com/httpdocs:/bin/false"

10013

pid is the number?

Thank you and good day
 
Hi Pecnet,

first of all be informed, that I didn't suggest to manual edit your file "/etc/passwd" - file - you should have used the command "deluser debuguser".


Second:
"debuguser:x:10013:1003::/var/www/vhosts/example.com/httpdocs:/bin/false"

10013

pid is the number?
No, not at all!
The PID - Number will be displayed on the command line, when you would have used the suggested command: "ps -aux | grep usermng"

Another example ( in this case with the grep - example "dovecot" ):
ps -aux | grep dovecot
root 12020 0.0 0.0 13228 900 pts/5 S+ 12:00 0:00 grep dovecot
root 16376 0.0 0.0 18000 1256 ? Ss Sep27 0:02 /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf
dovecot 16394 0.0 0.0 9388 976 ? S Sep27 0:00 dovecot/anvil
root 16395 0.0 0.0 9524 1172 ? S Sep27 0:00 dovecot/log
As you can see, the output of my used command were 4 lines - each line with the unique PID - number, marked in RED.​


Third:
"debuguser:x:10013:1003::/var/www/vhosts/example.com/httpdocs:/bin/false"
If you would like more informations for the entries in your "/etc/passwd" - file, pls. consider to read the manuals: => http://man7.org/linux/man-pages/man5/passwd.5.html
 
Back
Top