[Case 72801] cPanel File Manager Permissions on files created

avest

Registered
Apr 4, 2013
3
0
1
cPanel Access Level
DataCenter Provider
I have noticed something strange regarding how the File Manager utility seems to handle permissions for files that are created from within the File Manager utility.

When a file is first created, it has 644 permissions. Permissions remain the same when a file is edited and saved. However, the issue seems to be when a file is edited and then saved as a different file name (by changing the name in the "Editing:" field at the top). The permissions for this newly-created file are 600, rather than 644 as I would expect to see.

Is this normal/expected behavior? Or is this perhaps a bug?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

I was able to reproduce this behavior. I opened an internal case with development reporting this issue. For reference, the internal case number is 72801. I will update this thread with more information when it becomes available.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
The development team has indicated this behavior is by design. 0600 permissions are used by default because it is more protective of the user's privacy in the event the file contents may be sensitive.

Thank you.
 

avest

Registered
Apr 4, 2013
3
0
1
cPanel Access Level
DataCenter Provider
Thanks for your help looking into that. However, it seems odd to me that this would only happen in this very specific scenario. Why wouldn't the same rules be applied to files that were created from scratch within the File Manager? Or with files uploaded through there? Or both?

It might be nice to be able to set the rules on how permissions are handled with files in the File Manager, such as at the time the file is created, or maybe on a global scale ("all files uploaded/created in File Manager have xxx permissions").

Anyway, thanks again for the help.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Feel free to open a feature request for the ability to configure the default permissions on files that are edited or created through File Manager:

Submit A Feature Request

Thank you.