Bug after delete ssh user in site #176

Closed
opened 2026-04-05 20:25:41 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @RiKaZaRai on 10/8/2024

CloudPanel version(s) affected

latest

Description

I've encountered an issue with SSH user management in CloudPanel. Here's a summary of the problem:

  1. I created SSH users (greg-sshftp and greg-ssh) through the CloudPanel interface.

  2. When I tried to delete these users through CloudPanel, the system appeared to process the deletion.

  3. However, upon attempting to recreate users with the same names, CloudPanel indicated that these users already existed.

  4. I checked the system and found that while the users were no longer listed in /etc/passwd, their home directories (/home/greg-sshftp and /home/greg-ssh) still existed.

  5. I had to manually remove these directories using the command:
    sudo rm -rf /home/greg-sshftp /home/greg-ssh

  6. Only after manually deleting these directories was I able to create new users with the same names.

This behavior suggests that the CloudPanel user deletion process is not completely removing all traces of the user from the system, particularly the home directories. This can lead to confusion and potential security issues if not addressed.

Could you please investigate why the user deletion process in CloudPanel is not removing the home directories, and provide a solution or workaround for this issue?

Thank you for your assistance.

How to reproduce

Create user SSH and Delete
After recreate user with same name.

Possible Solution

No response

Additional Context

No response

*Originally created by @RiKaZaRai on 10/8/2024* ### CloudPanel version(s) affected latest ### Description I've encountered an issue with SSH user management in CloudPanel. Here's a summary of the problem: 1. I created SSH users (greg-sshftp and greg-ssh) through the CloudPanel interface. 2. When I tried to delete these users through CloudPanel, the system appeared to process the deletion. 3. However, upon attempting to recreate users with the same names, CloudPanel indicated that these users already existed. 4. I checked the system and found that while the users were no longer listed in /etc/passwd, their home directories (/home/greg-sshftp and /home/greg-ssh) still existed. 5. I had to manually remove these directories using the command: sudo rm -rf /home/greg-sshftp /home/greg-ssh 6. Only after manually deleting these directories was I able to create new users with the same names. This behavior suggests that the CloudPanel user deletion process is not completely removing all traces of the user from the system, particularly the home directories. This can lead to confusion and potential security issues if not addressed. Could you please investigate why the user deletion process in CloudPanel is not removing the home directories, and provide a solution or workaround for this issue? Thank you for your assistance. ### How to reproduce Create user SSH and Delete After recreate user with same name. ### Possible Solution _No response_ ### Additional Context _No response_
Sign in to join this conversation.