Skip to content

User not deleted after deleting site #775

Description

@Kabelkrant

CloudPanel version(s) affected

2.5.4

Description

Hi guys, I'm on:

  • Ubuntu 26.04 Server (fresh install)
  • Cloudpanel 2.5.4 with MariaDB 12.3

In the WebUI, I just deleted a website. It was a reverse proxy.

However, it appears the associated user account was not deleted. Also, it's home directory still exist.

How to reproduce

  1. Create a reverse proxy
  2. Realise you actually want a PHP site.
  3. Delete the reverse proxy
  4. Create a PHP website with the same username. Cloudpanel reports: "Site User: This value already exists."

Verify:

  1. cat /etc/passwd
    onderzone:x:1008:1009::/home/onderzone:/bin/bash
    (among others)
  2. ls /home
    onderzone
    (among others)

The website in the cloudpanel site list is gone.

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions