Jump to content

File Permissions: Difference between revisions

No edit summary
Line 112: Line 112:
For webpages, you should remember the following:
For webpages, you should remember the following:


Your home directory (~) should be go+x or 711, so use the command chmod 711 ~ (return). Your public_html folder must also be go+x or 711, so again, use chmod 711 ~/public_html (return). All subfolders of your public_html to be used by your website must be go+x or 711 as well...
Your home directory (~) should be go+x or 711, so use the command chmod 711 ~ (return). Your public_html folder must also be go+x or 711, so again, use chmod 711 ~/public_html (return). All subfolders of your public_html to be used by your website must be go+x or 711 as well... See [[Webspace]] for more info on webpages on Redbrick.


Finally, all files, eg HTML files, must be go+r or 644. You can use a recursive chmod to change all files in public_html or subdirectories of public_html to have permission 644, by using the command chmod 644 ~/public_html/*.
Finally, all files, eg HTML files, must be go+r or 644. You can use a recursive chmod to change all files in public_html or subdirectories of public_html to have permission 644, by using the command chmod 644 ~/public_html/*.


You can get more detailed information on chmod by typing man chmod at the prompt and of course, contact [[Helpdesk]] if you have any problems.
You can get more detailed information on chmod by typing man chmod at the prompt and of course, contact [[Helpdesk]] if you have any problems.
496

edits