Differences

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

Link to this comparison view

wiki:software:www:advanced [2012/09/24 13:48]
David C LeFevre added a link
wiki:software:www:advanced [2012/09/24 15:48] (current)
David C LeFevre [User Authentication]
Line 41: Line 41:
 </code> </code>
  
-===== User Authentification =====+===== User Authentication =====
  
- +**A word of caution:** The procedure below sets up basic authentication only.  It is not to be considered highly secure.  Basic authentication is a handy solution to require a username and password to access a particular web directory but it isn't robust enough to secure highly sensitive data!
  
 **STEP 1.** Create a directory (name whatever you want)  in your __home directory.__ In this example, I called it "authdir". This directory will contain the .htpasswd file, which contains the passwords you give to the 'invited'- guests'. **STEP 1.** Create a directory (name whatever you want)  in your __home directory.__ In this example, I called it "authdir". This directory will contain the .htpasswd file, which contains the passwords you give to the 'invited'- guests'.
Line 73: Line 73:
  
 If you successfully execute the htpasswd command, you will be prompted to enter the password of your 'guest' twice. If you successfully execute the htpasswd command, you will be prompted to enter the password of your 'guest' twice.
 +
 +The directory where your .htpasswd resides needs to have read and execute permissions.
 +
 +<code bash>
 +   chmod 0755 ~/authdir/
 +</code>
  
 Your .htpasswd file also needs to be set to the correct permissions. Your .htpasswd file also needs to be set to the correct permissions.