At the cattell prompt, use
cdmkdir public_htmlchmod u+rwx public_htmlchmod a+rx public_htmlIf you are not sure that your home directory is also accessible, say:
cd ..chmod o+x ~usernamecdcd public_htmlHowever, most people find it easier to modify someone else's home page file. To do this, first use your browser to find a home page you like, save it somewhere using "File/Save_As", then move it to your /public_html/ directory. To do this, you will have to upload it unless it is already on cattell.
Note that "index.html" and any other files in public_html that you want people to access must be world readable. This can be ensured by using
chmod a+r filenamemore /pkg/psych/etc/httpd/htdocs/ReadmeYou can put html files in a subdirectory of public_html. If you do so, the directory needs to be accessible to everyone, just as public_html, and the reference to these files need to include the subdirectory name. For example,
<a href = "http://www.psych.upenn.edu/~username/file1.html"></a>
with "username" replaced by your username, references file1.html in the sudirectory dir1 of public_html, whereas
<a href = "http://www.psych.upenn.edu/~username/dir1/file1.html"></a>
references file1.html in your public_html directory.
In particular, to set up passwords, you need to create a file called ".htaccess" in the directory containing the html file for the restricted page. Note that all files in this directory will be protected. So, if you only want to protect one html file, put it in its own directory.
One simple way to set up password access for anyone from Penn (i.e., anyone with a PennNet password) is to put a single word in the .htaccess file: AuthPennNet. For example, you could do this with the single command:
echo "AuthPennNet" > .htaccess
while you are in the directory you want to protect. This will allow anyone who can provide a valid pennkey and pennkey password to access pages in that directory. If you would like to restrict the page to particular pennkeys, add the line:
AuthZPennNetUsersFile .auth_file
and then create a .auth_file with one pennkey per line.
To allow anyone from upenn.edu to access the site (with outsiders
still having to log in), add the line:
AuthPennNetDomainOverride .upenn.edu
More generally, and for more details, see this page.
Of course, these files must be readable, so you could say something like chmod 644 .htaccess to make sure.
For other ways of setting up passwords, you will need to enter
some information in the .htaccess file and use the 'htpasswd'
command to encrypt the password. This is described for mail.sas
in
http://www.sas.upenn.edu/computing/help/WWW/htaccess.html.
To apply these directions on Cattell, note that your html
directory will be something like /home/username/public_html/
rather than /home3/u/user/html. Step 4 is chmod 644 *.
Controlling access to BlackBoard pages
It is a good idea to make a subset of your course material
available to anyone, so that prospective students can find out
about your course. Here is how:
1. Log into your course web site at https://courseweb.library.upenn.edu.
2. Go to the Control Panel for your course and click on Manage Tools and then Enable Blackboard tools. On the page that comes up check the "Allow Guest" box for those areas of the course that you want to make accessible. The appropriate ones are "Content Area" and "Staff Information". Once you have done this click submit at the bottom of the page.
3. Now return to the Course Control Panel and click on the Manage Course Menu. Click the "modify" button next to the "Course Information" page. Once on that page, put check marks in the boxes next to "Allow Guest Access" and "Allow Observer Access". Repeat this process for the "Staff Information" page and any other areas that you want to give access to. DO NOT do this for those areas of the site that contain copyrighted materials.
4. Return to the Course Control Panel and under "Course Options", you will see an alternative called "Settings" Click on that. Then click on "Guest Access" and make sure the "allow guest" box is checked. Later in the list you will find "Observer Access". Click on that and make sure that the "allow observers" box is checked. Be sure to click submit after doing each of these.
Once this is done, you do not need to redo it each time you reteach the course. If you copy the course site for use in a subsequent term, these settings will be preserved.