The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Case 72801] cPanel File Manager Permissions on files created

Discussion in 'General Discussion' started by avest, Jul 9, 2013.

  1. avest

    avest Registered

    Joined:
    Apr 4, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    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?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. avest

    avest Registered

    Joined:
    Apr 4, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Great! Thanks so much for your help with this.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. avest

    avest Registered

    Joined:
    Apr 4, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    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.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page