CPSCI 105: Explorations in Computer Science
How To Create and Maintain an Audit Website
Spring 2007
For the purposes of this discussion, we'll assume that your username is
astudent
and that you are a member of group
olive.
(So wherever astudent occurs below, substitute your actual username
on warp, and wherever olive occurs
below, substitute your actual group name.)
-
(I'm assuming that you've made the change to your .bashrc file
described at the beginning of Lab 18; if you haven't, go
ahead and make the change, save the file, then log out and then log back on to
warp.)
When bash asks you
Are you planning to work as part of a web audit group?
respond
y
- What you should see:
- Files will be created u=rw(x),g=rw(x),o=r
Primary group is now olive.
- If you don't ...
- Have you logged out and back in?
Did you copy the correct text into your .bashrc?
If you still can't get this to work,
send me an email.
-
Make sure that warp knows that
you are a member of group olive.
- How:
- Enter groups at the bash prompt.
- What you should see:
- astudent olive
- If you don't ...
-
Send me an email
—you can't fix this yourself.
-
Find the location of your group's audit website in the
warp filesystem.
- How:
- It is located at /projects/audit-groups/2007/olive/public_html
-
Copy your audit files from your personal webspace on
warp to your group's webspace.
- How:
- Make your public_html directory the working directory:
cd ~/public_html
- cp filename /projects/audit-groups/2007/olive/public_html/.
(That's not a period—you need the dot.)
-
Check to make sure your copied file has the correct group association.
- How:
- cd /projects/audit-groups/2007/olive/public_html
- ls -l filename
- What you should see:
- -rw-rw-r-- 1 astudent olive 207 Apr 22 10:09 filename
- If you don't ...
- chgrp olive filename
-
Check to make sure your copied file has the correct group permissions.
- How:
- cd /projects/audit-groups/2007/olive/public_html
- ls -l filename
- What you should see:
- -rw-rw-r-- 1 astudent olive 207 Apr 22 10:09 filename
- If you don't ...
- chmod g=rw filename
-
Check to make sure your copied file is world-readable.
- How:
- cd /projects/audit-groups/2007/olive/public_html
- ls -l filename
- What you should see:
- -rw-rw-r-- 1 astudent olive 207 Apr 22 10:09 filename
- If you don't ...
- chmod o=r filename
-
(Remember ... only a file's owner can change its group or set its permissions.
Further, the way things are set up on warp,
only a file's owner can rename or delete the file.
If you followed the above instructions, however, everyone in the group can
modify the file.)
-
View your file over the web.
- How:
- Go to the Websites Containing Audit Documents webpage;
select the appropriate link, then modify the address bar to include the name of your file
in the URL.
- What you should see:
- After you're prompted for a username and password, the page should load into
your browser.
- If you don't ...
- Make sure your file is world-readable.
-
Repeat as necessary.
- If you create directories in your group's audit webspace, don't forget
to make sure that the permissions are suitable for web access.
- How:
- cd /projects/audit-groups/2007/olive/public_html
- mkdir dirname
- ls -ld dirname
- What you should see:
- drwxrwsr-x 1 astudent olive 1024 Apr 25 16:22 dirname
- If you don't ...
- chmod a+x dirname
-
Don't forget that all files to be served out over the web must
be world-readable—this includes any stylesheets or image files.
If you've followed these instructions and you're still having problems,
contact me. In your message, be specific
about where you've run into a problem.
[ Return to the CPSCI 105-01 homepage ]
Brian J. Rosmaita <contact me>
This page was last modified Tuesday, 1 May 2007 at 05:01 UTC.