Hello, How can I save a directory by chmod 777? Thank you for any answers in advance.
Hello, How can I save a directory by chmod 777? Thank you for any answers in advance.
You may want reinstall your entire system after doing that recursivly, take care don't use the -R or -r options ! something is wrong if you need/want to make a chmod 777 /usr/...
for sure you will find out after 1 minute that was a big mistake... Safety reasons..
also, as far as I know, for chmod -R 777 /usr/ there is no UNDO !!
The only thing I can think of is that there are a few directory/file paths being written in the wp-options table in the database; "siteurl" and "home" the most noticable.
In general you can't just copy over a database. Export and Import is the way to go, so you might want to check that first.
You however appear to know what you're doing, so other than the above, I can't help you much further at the moment.
You could use an umask setting of '000' in your script ('umask 000') before creating the directories, or you could run a script on a regular basis (perhaps by cron) to change permissions appropriately -
'find tmp/cache -type d -exec chmod 777 {} \;'
i guess umask will give you exactly what you need.
Check this out:
http://www.ss64.com/bash/umask.html
No TechArena No Experts, Know TA know Experts!
Bookmarks