basic user with root privilege sftp #206

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

Originally created by @paulobeneton on 7/26/2024

CloudPanel version(s) affected

2.4.2

Description

I connected via ssh through filezilla.

It connects to the user folder correctly.

However, when I type in the / address, it takes me to the server's default folder. I can see all the root user folders.

/home I can see the owner's folders clp, root, mysql
image

How to reproduce

  1. Create a website on cloudpanel.

  2. Get the sftp connection credentials

  3. Connect to sftp using filezilla or another ftp program.

  4. In the directory, try to access /, which is a folder above the user directory.
    image

Possible Solution

Do not allow the user to have access to folders that do not belong to them and especially to root.

Additional Context

No response

*Originally created by @paulobeneton on 7/26/2024* ### CloudPanel version(s) affected 2.4.2 ### Description I connected via ssh through filezilla. It connects to the user folder correctly. However, when I type in the / address, it takes me to the server's default folder. I can see all the root user folders. /home I can see the owner's folders clp, root, mysql ![image](https://github.com/user-attachments/assets/7ae16dbc-b0e2-4f81-89e6-4cbfc0599a8c) ### How to reproduce 1) Create a website on cloudpanel. 2) Get the sftp connection credentials 3) Connect to sftp using filezilla or another ftp program. 4) In the directory, try to access /, which is a folder above the user directory. ![image](https://github.com/user-attachments/assets/cfa43858-d53a-4693-95af-b27470636ed2) ### Possible Solution Do not allow the user to have access to folders that do not belong to them and especially to root. ### Additional Context _No response_
Sign in to join this conversation.