Results 1 to 4 of 4

Thread: save a directory by chmod 777

  1. #1
    Join Date
    Sep 2005
    Posts
    82

    save a directory by chmod 777

    Hello, How can I save a directory by chmod 777? Thank you for any answers in advance.

  2. #2
    Join Date
    Dec 2007
    Posts
    1,599

    Re: save a directory by chmod 777

    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 !!

  3. #3
    Join Date
    Dec 2007
    Posts
    1,547

    Re: save a directory by chmod 777

    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.

  4. #4
    Join Date
    Dec 2007
    Posts
    765

    Re: save a directory by chmod 777

    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!

Similar Threads

  1. What does chmod 654 stand for?
    By Akono in forum Operating Systems
    Replies: 4
    Last Post: 31-12-2011, 02:08 AM
  2. Replies: 3
    Last Post: 10-11-2011, 10:34 PM
  3. How to access CHMOD on Mac OSX
    By DENNI$SON in forum Operating Systems
    Replies: 7
    Last Post: 06-09-2011, 10:21 AM
  4. How to use chmod to access all subdirectories
    By CitricAcid in forum Operating Systems
    Replies: 3
    Last Post: 29-06-2009, 11:14 PM
  5. Can't Save To Root Directory
    By BoydM in forum Vista Help
    Replies: 8
    Last Post: 09-08-2008, 06:16 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,211,688.07834 seconds with 17 queries