Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
limiting-access-to-your-home-directory [2017/11/17 12:06]
bryceml
limiting-access-to-your-home-directory [2017/11/17 12:20]
bryceml
Line 16: Line 16:
 cd "${HOME}" cd "${HOME}"
  
-find . -not -type l -not -path "./public_html*" -exec chmod o-rwx {} \; +find . -not -type l -not -path "./public_html*" -exec chmod g-rwx,o-rwx {} \;
-find . -not -type l -not -path "./public_html*" -exec chmod g-rwx {} \;+
 find . -type d -not -path "./public_html*" -exec setfacl -d -m u::rwx,g::-,o::- {} \; find . -type d -not -path "./public_html*" -exec setfacl -d -m u::rwx,g::-,o::- {} \;
 chmod o+x . chmod o+x .
 chmod g+x . chmod g+x .
 +
 </code> </code>
  
 Please note that if you are using your home directory to share things with other users, this will break that functionality.  It may also break any complicated acls you may have set.  Use at your own discretion. Please note that if you are using your home directory to share things with other users, this will break that functionality.  It may also break any complicated acls you may have set.  Use at your own discretion.

limiting-access-to-your-home-directory.txt · Last modified: 2017/11/17 12:22 by bryceml