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.

File permission seems to have changed by itself

Discussion in 'General Discussion' started by brayne, Mar 27, 2014.

  1. brayne

    brayne Registered

    Joined:
    Mar 26, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi there, I've been using cPanel for a while, but only as a reseller. I have recently started using a VPS, and am trying to get my head around all the new cPanel admin capabilities.

    I had an unusual problem this morning. All of a sudden, one of the PHP files of one of my websites started returning an "Internal Server Error 500". After much searching, I realised that the problem was related to the permission of this file, which was set to 664. All other files were set to 644. As soon as I changed the permissions back to 644, the file started working properly.

    The mystery is that the file seemed to change permission all by itself. It was working perfectly, then the error started without any apparent intervention. I am the only person who has access to the files, and there is no other evidence of the site being hacked.

    My question is this. Are there any automated security or precautionary systems in place within cPanel that might have changed the permissions of this file, in response to an attack?

    It was an easy enough problem to fix, but I'd really like to try and find out why it happened in the first place.

    Thanks for your help.
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    There is nothing in cPanel itself that alters permissions in user accounts. It could have been something in your application, or perhaps your hosting provider has a script of some sort that runs on the server.
     
  3. brayne

    brayne Registered

    Joined:
    Mar 26, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Many thanks, that's good to know.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, it seems like an alternation made by the application itself. You could always "stat" the file to see more information about when it was last modified if it happens again. EX:

    Code:
    stat /path/to/file.name
    Thank you.
     
Loading...

Share This Page