directory restricted
cd ~ric/public_html
mkdir protect
chmod g+r,g+x,o-r,o-x protect
AuthUserFile /z/ric/secret/.htpasswd
AuthGroupFile /dev/null
AuthName "Ric's protected files"
AuthType Basic
require valid-user
cd
mkdir secret
cd secret
htpasswd -c .htpasswd pumpkin
[ you're prompted for the password for pumpkin]
[ if you have other users enter the following. Don't use the -c]
htpasswd .htpasswd user2
htpasswd .htpasswd user3
Comments
Post a Comment