Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Permissions in file being set back every few minutes -wordpress

Posted on 2014-04-23
6
309 Views
Last Modified: 2014-05-01
I had some problem (i dont know the reason) where my wordpress script woulndn't work ok, some modules wouldn't be shown for some file permissions (index.php files had "200" mod persmions), so when i set the permisions on those files at 777, all the script and the site works absolutely flawless... but... and here comes the but.

A few minutes later, its like if those permisions were set back to "200" and i can't again read the files and get the error.

what keeps changing these permissions back to 200?? I need them to be 777 or 755, and not changing back!!! I tried several times and it kept happening this thing. :(
0
Comment
Question by:celtician
  • 3
  • 3
6 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 40019275
You need to look at cron jobs first.

Which user is reflected as the owner of the files?

Are these files being regelated by a script/process?
0
 

Author Comment

by:celtician
ID: 40019838
No, these files are there, they have been created in 2009 actually, it looks like if it were running some auto-backup restore, as when i change the file permissions it shows the last date changed (now if i do it) and a few mins back it will show again 2009 with the old setting. this is really weird :S
0
 
LVL 77

Expert Comment

by:arnold
ID: 40020022
Check umask

777 is not advisable which OS and what do you setup?

You may have a snapshot restore when a "violation" which setting everything as 777 is.

What user is reflected as the owner of the files?

If you set permissions to 755/644 or double.

Is this your system or it is a VPS?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:celtician
ID: 40021473
So how should i set permissions? 755 instead?

its a shared hosting service on 1and1, the owner is a long number who i really dont know what corresponds to
0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 40021542
Yes, 755 for directories and 644 for files.
You should check with hosting support to figure out what is going.
 find . | while read a; do
If test -d "$a"; then
        chmod 755 "$a"
else
         chmod 644 "$a"
fi
done


Find will enumerate the files/directories, the test looks if it is a directory which will have 755 every other file is set to 644.

Hidden files/directories (.name) will not be included
0
 

Author Closing Comment

by:celtician
ID: 40035119
Thank you, it worked
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can't connect to WAMP server 5 71
Showing random records from database 10 44
AWS EC2 HTTP & HTTPS 2 44
how to access a remote mysql database with xampp 3 23
Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question