In order to set up your directory for web publishing, you must have the correct access rights of your home directory so that everyone can execute files stored in it. To check your access rights, issue the following command from your home directory
ls -ldH ~ Note: The above command uses the letter "l",not the number "1".
You should see output similar to the following
drwx--x--x dlett007 or drwx--S--x dlett007 or drwx-----x dlett007 Note: dlett007 will be replaced by your ocelot user name
It is the final "x" that is important in the string "drwx--x--x". If you do not have the final "x", then you must change the access rights for your home directory. If you have the final "x", then you may skip the next paragraph, and continue with Creating your Web directory.
This does not change the default permissions when you create a file. In order to allow someone to execute or read a file, you will still need to change the access rights manually for that file. This command only needs to be executed once.
chmod 701 ~
Once you have set up the permissions for your home directory, then it is time to set up permissions for your web directory. Here at FIU, your web directory must be named public_html
mkdir public_html
chmod 705 public_html
cd public_html
chmod 604 index.html
This has done three things
It is possible to ssh to a school computer to edit index.html and to run a browser to view how your page looks.
cd public_html
nano index.html
http://www.aul.fiu.edu/~dlett007
, replacing dlett007 with your ocelot username.