It is currently Sun Jul 20, 2008 12:42 am

FAQ: How to recursively adjust file and directory permissions

This is the archive off all FAQ related threads.

FAQ: How to recursively adjust file and directory permissions

Postby rliskey on Sat Oct 07, 2006 7:57 am

Using Joomla! Administration
In the "back end" Administration view, go to  Site --> Global Configuration --> Server.

Using the UNIX shell
Note: The [i]find command automatically assumes that it should start from the current directory. To be safe, go to your public_html directory and specify a path as the first argument. Some shells, such as bash on Apple OS X, must have a path specified in the find command.[/i]

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod 707 images
chmod 707 images/stories
chown apache:apache cache

Using a shell script
See this post

Notes:
1. Test all third party extensions after changing permissions.
2. You'll need to reset write permissions to install more extensions.

Back to Security FAQ Table of Contents

Search Keywords: security, files, directories, folders, protect
Last edited by rliskey on Wed Nov 29, 2006 7:10 am, edited 1 time in total.
User avatar
rliskey
Joomla! Guru
Joomla! Guru
 
Posts: 746
Joined: Tue Jun 06, 2006 7:41 am
Location: Third planet from Sol

Return to FAQ Archive

Who is online

Users browsing this forum: No registered users and 1 guest