How to restore default permissions in the virtual host directory on Linux?

Follow

Comments

4 comments

  • Avatar
    F L E X 2 0 0 0 2 1 0 3

     Why do some files lose their rights at all? What is or can be a reason?

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    @F L E X 2 0 0 0 2 1 0 3

    Hi!
    Usually, this does not occur. In case you use CentOS, consider using audit.

    Also, make sure you do not have any malware on the server.

    0
    Comment actions Permalink
  • Avatar
    Mario

    Hi, 

    In case of "user_example" what would you recommend? not root right?

    Also, how to avoid this happening in new installations? We by default use a custom WordPress media uploads folder, as ~/wp-uploads/ kind of sucks (sorry Matt), and this issue always pops out on custom WP folders in brand new installations.

    Thanks

    0
    Comment actions Permalink
  • Avatar
    Julian Bonpland Mignaquy

    @Mario

    You can find "user_example" (system user) in Domains > example.com > System user:
    As my colleague mentioned this does not happen normally. I recommend using audit to monitor permissions changes. Also, if you create custom folders make sure they have 755 permissions.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request