mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
Bug after delete ssh user in site #176
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
I created SSH users (greg-sshftp and greg-ssh) through the CloudPanel interface.
When I tried to delete these users through CloudPanel, the system appeared to process the deletion.
However, upon attempting to recreate users with the same names, CloudPanel indicated that these users already existed.
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.
I had to manually remove these directories using the command:
sudo rm -rf /home/greg-sshftp /home/greg-ssh
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