Campuses:
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| computing:web:web_publishing:acl [2012/12/11 17:38] – allan | computing: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 | + | 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. | ||
| | | ||
| - | | + | |
| - | | + | |
| | | ||
| < | < | ||
| Line 22: | Line 22: | ||
| < | < | ||
| - | 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 " |
| </ | </ | ||
| 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. | ||
| + | |||
| + | < | ||
| + | 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. | ||
| + | </ | ||
| 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: The group name " | + | NOTE: The group name " |
| </ | </ | ||