Change Permissions in Sites and Public
Purpose: When using the Sites or Public directories in your network home directory, you may, occasionally, need to change permissions to make the files / folders visible to visitors. Below are steps to take to change permissions.
- SSH to any of the lab machines in the barnyard or igppweb.ucsd.edu.
Issue the following command which should make ALL files within your Sites directory readable to visitors to your personal website.:
chmod -R o+r ~/Sites/
If there are certain files that should not be accessible to your website visitors, please move them to a private directory such as ~/Documents:
mkdir ~/Documents/unpublished; mv ~/Sites/file to ~/Documents/unpublished
These same steps can be applied to files in your Public folder, as well:
chmod -R o+r ~/Public/
and, If there are certain files that should not be accessible to others, please move them to a private directory such as ~/Documents:
mkdir ~/Documents/unpublished; mv ~/Public/file to ~/Documents/unpublished