This article will discuss the permissions that are necessary for College of Engineering Websites thosted on Linux servers.  Most of our sites' files are available on shell.engr.arizona.edu in /data/..... You will be given the specifics when your site is set up. This document assumes Linux and group editing capabilities; more than one user is "editor ".


All files and directories must have the correct permissions before the web server can access them.  The following permissions must be applied


Using numeric permissions:

  •          files must be  0664
  •          directories must be 2775
  •          All files and directories must be owned by a member of the group:


  The long directory listing of the ACL Group's NSFCAC website looks like:
[root@scooter nsfcac]# ls -l
total 13168
drwxrwsr-x. 9 cihantunc engr-rg-acl webeditors 4096 Mar 9 2019 09March2019
-rw-rw-r--. 1 cihantunc engr-rg-acl webeditors 3626 Mar 9 2019 cac.css
-rw-rw-r--. 1 cihantunc engr-rg-acl webeditors     2698 Mar  9  2019 contacts.html
.
.
.
When you are logged onto shell.engr.arizona.edu using an SSH client, easiest way to make sure your site's permissions are correct is to issue two commands from the top level directory of your web site.

find . -type f -exec chmod 0664 {} \;
find . -type d -exec chmod 2775 {} \;

A typical workflow would be:

  1. Log into shell
  2. cd to your website's top level directory
  3. make changes to existing files and directories, add new files and directories
  4. run the 2 find commands.
  5. refresh my browser and check the updates; occasionally clearing browser history/cache is required

    

If you encounter issues after making the above changes to your site's files, please contact Engr-IT Support


Thank you!

   Engr-IT