[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] password protecting a directory



Let's suppose we want to protect the directory "example". Create an .htaccess file
in the /web/example directory with the following data:

AuthName LimitedAccess
AuthType Basic
AuthUserFile /home/sites/siteXX/web/example/.htpasswd
require valid-user

Then create an empty file called ".htpasswd" in the same directory. Give the command ">.htpasswd".
Finally, in order to add the user e.g chris, give the command:
htpasswd .htpasswd chris

enter the password you want.


At 23:59 13/9/2001, you wrote:
>Hello
>
>        We have just received our new cobalt RAQ4. I have very little knowledge of
>Linux/Unix. I'm trying to password protect a folder but I don't know how to
>create the .htaccess file. Please help.
>
>Thanks,
>Marvin
>
>
>_______________________________________________
>cobalt-users mailing list
>cobalt-users@xxxxxxxxxxxxxxx
>To Subscribe or Unsubscribe, please go to:
>http://list.cobalt.com/mailman/listinfo/cobalt-users