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

RE: [cobalt-users] Password Protected Directory



Provided that you have an .htaccess in the directory you want protect, You 
will need to issue this command at shell prompt:

htpasswd -c /home/sites/site1/web/directory/.htpasswd

You will be asked for a username and password.

Your directory should be now passwd protected.

aljuhani@xxxxxxxxx

>===== Original Message From cobalt-users@xxxxxxxxxxxxxxx =====
>Dear José Luis,
>
>Thank you for your help.
>I have done all steps you told me, but when the box appear to ask for user
>name and password for accessing to the folder and the files which are in it,
>the authentication will reject the user name and password!
>Please tell me what I have done wrong.
>
>Regards,
>Shaya
>
>
>----- Original Message -----
>From: "José Luis Chafardet Grimaldi" <joseluis@xxxxxxxxxxxxxxxx>
>To: <cobalt-users@xxxxxxxxxxxxxxx>
>Sent: Saturday, February 15, 2003 12:15 PM
>Subject: Re: [cobalt-users] Password Protected Directory
>
>
>> > How I can Protect a folder with a password, on a web site on cobalt
>RAQ4?
>> >
>> > _____________________________________
>> > cobalt-users mailing list
>> > cobalt-users@xxxxxxxxxxxxxxx
>> > To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
>> > http://list.cobalt.com/mailman/listinfo/cobalt-users
>> >
>> >
>> >
>> With .htaccess
>>
>> Create a file called .htaccess
>>
>> in it add the next lines
>>
>>
>>
>> AuthUserFile /home/sites/site1/web/directory/.htpasswd
>> AuthName "Restricted access"
>> AuthType Basic
>> <Limit GET>
>> require username
>> </Limit>
>>
>>
>>
>> note that require username is the user that must be entered in the text
>box
>>
>> that will apear on the screen when some one try to open that directory
>>
>> Then on the shell in the dir where .htaccess is located type:
>>
>> htpasswd -c AuthUserFile /home/sites/site1/web/directory/.htpasswd
>username
>>
>> the -c flag will ask you for a password, 2 times, the first for the
>password
>> and the second for confirmation
>>
>> sorry my english, hope you understanded my explaination
>>
>> regards,
>>
>> José Luis Chafardet G.