Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
limiting-access-to-your-home-directory [2017/11/17 11:58] – bryceml | limiting-access-to-your-home-directory [2017/11/17 12:22] (current) – bryceml | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Limiting Access to your Home Directory ====== | ====== Limiting Access to your Home Directory ====== | ||
- | For old accounts, the default was to leave home directories | + | For old accounts, the default was to leave home directories at 755 (user:rwx group:r-x other:r-x), new folders at 755 (user:rwx group:r-x other:r-x), and new files at 644 (user:rw- group:r-- other:r--). We have changed the default behavior for new students to: |
* 711 on the home directory (the -11 of 711 is because the www-data user needs to be able to get to your public_html folder and this is the easiest way for many reasons) | * 711 on the home directory (the -11 of 711 is because the www-data user needs to be able to get to your public_html folder and this is the easiest way for many reasons) | ||
- | * 700 as the default for files created within the home directory | + | * 700 as the default for new folders created within the home directory |
+ | * 600 as the default for files created within the home directory | ||
* 755 on the public_html directory | * 755 on the public_html directory | ||
- | * 755 as the default for files created within the public_html directory | + | * 755 for new folders created within the public_html directory |
+ | * 644 as the default for files created within the public_html directory | ||
If you would like to adopt the new behavior, please run the following commands. | If you would like to adopt the new behavior, please run the following commands. | ||
Line 14: | Line 15: | ||
cd " | cd " | ||
- | find . -not -type l -not -path " | + | find . -not -type l -not -path " |
- | find . -not -type l -not -path " | + | |
find . -type d -not -path " | find . -type d -not -path " | ||
chmod o+x . | chmod o+x . | ||
chmod g+x . | chmod g+x . | ||
+ | |||
</ | </ | ||
- | Please note that if you are using your home directory to share things with other users, | + | Please note that if you are using your home directory to share things with other users, |