File permissions revert to 0770 after file modification #182

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

Originally created by @Skyspek on 10/3/2024

CloudPanel version(s) affected

2.4.2

Description

When I make modifications to a file via the file manager, the file permissions that were initially set to 0644 are automatically changed to 0770 after the modification. This behavior causes permission issues, and I would like the permissions to remain unchanged after editing a file.

How to reproduce

  1. Go to the file manager.
  2. Edit a file that has 0644 permissions.
  3. Save the modifications.
  4. Refresh the page after saving.
  5. Observe that the file permissions change from 0644 to 0770.

You can also test this with a folder:

  1. Change the permissions of a folder.
  2. Observe that all files inside the folder have their permissions changed as well.

Possible Solution

A potential fix would be to modify the way file permissions are handled after edits in the file manager, ensuring that the initial permissions remain intact unless explicitly changed by the user.

Additional Context

No response

*Originally created by @Skyspek on 10/3/2024* ### CloudPanel version(s) affected 2.4.2 ### Description When I make modifications to a file via the file manager, the file permissions that were initially set to 0644 are automatically changed to 0770 after the modification. This behavior causes permission issues, and I would like the permissions to remain unchanged after editing a file. ### How to reproduce 1. Go to the file manager. 2. Edit a file that has 0644 permissions. 3. Save the modifications. 4. Refresh the page after saving. 5. Observe that the file permissions change from 0644 to 0770. You can also test this with a folder: 1. Change the permissions of a folder. 2. Observe that all files inside the folder have their permissions changed as well. ### Possible Solution A potential fix would be to modify the way file permissions are handled after edits in the file manager, ensuring that the initial permissions remain intact unless explicitly changed by the user. ### Additional Context _No response_
MrUnknownDE added the bugbugbugbugbugbugbugbugbugbugbugbugbugbugbug labels 2026-04-05 20:25:45 +02:00
Sign in to join this conversation.