Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
faq:web04 [2015/11/13 16:41]
alex Since htpasswd is not in $PATH by default and "locate" don't find it, i think it is a good idea to use absolut path here.
faq:web04 [2015/11/13 16:46]
alex
Line 9: Line 9:
      1. Create a file called '​.htaccess'​ in the directory you       1. Create a file called '​.htaccess'​ in the directory you 
         want to protect (NOTE, its not a directory in your         want to protect (NOTE, its not a directory in your
-        HOME directory, but on the /www file system)+        HOME directory, but on the /www file system). Double check with 'pwd -P'
  
         AuthUserFILE /​www/​path/​to/​directory/​.htpasswd         AuthUserFILE /​www/​path/​to/​directory/​.htpasswd
Line 29: Line 29:
         can then add additional users with:         can then add additional users with:
  
-        htpasswd .htpasswd myuser2+        ​/​usr/​pkg/​sbin/​htpasswd .htpasswd myuser2
  
      When you run '​mkhomepg -p', file permissions will be set so that      When you run '​mkhomepg -p', file permissions will be set so that