CSCI A348/548
Lab Notes Four

Fall 2000


Password protecting directories.
In this lab you will be setting up a password protected directory.

You will be using these settings to hand in your assignments.

Here's what you need to do:

  1. Log into burrowww.cs.indiana.edu and go to your ServerRoot directory

    cd /u/username/httpd


  2. Copy /u/dgerman/httpd/passwd to your ServerRoot

    cp /u/dgerman/httpd/passwd .

    Note that the command above assumes that you're in your ServerRoot already (the dot).


  3. Create a new directory under your DocumentRoot.

    Call the new directory: protected

    Your DocumentRoot is most likely htdocs.


  4. Put Reggie.html in your protected directory.


  5. Open your access.conf and add this to the end of the file:

    <Directory /u/username/httpd/htdocs/protected>
         AuthName       Protected 
         AuthType       Basic
         AuthUserFile   /u/username/httpd/passwd
         <Limit GET POST>
            require user dgerman 
         </Limit>
    </Directory>

    Please don't forget to put your username in the two highlighted places.


  6. Restart your server.

    Since there's more than one way to do it, I'll let you do it your way.


As soon as this is done please send me an e-mail message. I will try to verify that I can only see your Reggie.html file in your protected directory only in exchange for my password.

This is part of your next assignment, to be posted soon. Once your setup is complete you can start moving (copying) your assignments into this new directory where they can only be seen by username dgerman in exchange for the password listed in the file you transferred.

Make sure that the umask of the files in protected is 700.


Last updated on September 20, 2000, by Adrian German for A348/A548