Go to the U of M home page
School of Physics & Astronomy
School of Physics and Astronomy Wiki

User Tools


computing:web:web_publishing:acl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
computing:web:web_publishing:acl [2012/12/11 17:38] allancomputing:web:web_publishing:acl [2013/09/19 14:43] (current) allan
Line 7: Line 7:
 ===== By username and password ===== ===== By username and password =====
  
-These steps really have to be performed from the Unix command line. Please also note that preparing files in a non-unix text editor (Windows or particularly Mac) may not work as expected due to the different line break characters used.+These steps really have to be performed from the Unix command line. Please also note that preparing files in a non-unix text editor (Windows or Mac) may not work as expected due to the different line break characters used.
  
 1. Create a file named .htaccess in the directory you wish to protect, that looks similar to the following. 1. Create a file named .htaccess in the directory you wish to protect, that looks similar to the following.
  
              AuthType Basic              AuthType Basic
-             AuthUserFile /home/user1/allan/htpasswd +             AuthUserFile /home/lemming/htpasswd 
-             AuthGroupFile /home/user1/allan/htgroup+             AuthGroupFile /home/lemming/htgroup
              AuthName Private              AuthName Private
              <Limit GET POST>              <Limit GET POST>
Line 22: Line 22:
                            
 <note> <note>
-NOTE: Make sure your htpasswd and htgroup files are outside of the public-html directory, so they can't be downloaded using the web server. In this example, the home directory is /home/user1/allan, and we put the password and group files here as they will be inaccessible via the web.+NOTE: Make sure your htpasswd and htgroup files are outside of the public-html directory, so they can't be downloaded using the web server. In this example, the home directory is /home/lemming, and we put the password and group files here as they will be inaccessible via the web. The word "private" above is the group name we are going to use (you can name it what you want).
 </note> </note>
  
Line 31: Line 31:
 eg, eg,
  
-            htpasswd -c /home/user1/allan/htpasswd username1+            htpasswd -c /home/lemming/htpasswd username1
  
 The above command both creates the password file and adds the first user name to it. You should be prompted for a password for the user. You can add further users to the password file using the same command but without the -c switch. The above command both creates the password file and adds the first user name to it. You should be prompted for a password for the user. You can add further users to the password file using the same command but without the -c switch.
 +
 +<note>
 +Don't use the same password as you use for your Physics account or UMN internet account - the personal or group web pages do not use a secure connection, so the password isn't as safe against snooping as most other logins.
 +</note>
  
 3. Create your htgroup file (using a text editor). It should look something like: 3. Create your htgroup file (using a text editor). It should look something like:
Line 41: Line 45:
  
 <note> <note>
-NOTE: The group name "private" needs to match the specified group name in the .htaccess file in the "require group private" line. +NOTE: The group name "private" needs to match the specified group name in the .htaccess file (step 1 above) in the "require group private" line. 
 </note> </note>
  
computing/web/web_publishing/acl.1355269090.txt.gz · Last modified: 2012/12/11 17:38 by allan