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

RE: [cobalt-users] Passworded Web Page



Bless your heart, Carrie.  Thank you!!
Heather

-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Carrie
Bartkowiak
Sent: Tuesday, December 12, 2000 12:25 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: RE: [cobalt-users] Passworded Web Page


||>> Is there a preferred method to require a username and
||>> password before entry to a virtual site is permitted?
||>
||>.htaccess?

I can help with this! Note that I have a RaQ4i, so who knows if it will be
different on a diff. RaQ.
Straight from my support FAQs:
---------
How Do I Password Protect A Directory?
You'll need a plain-text editor. Make a file with the following contents:
order allow,deny
allow from all
require valid-user
authname "WhatYouWantYourAreaToBeNamed"
authtype basic
authuserfile /path/to/.htpasswd

Save this file as .htaccess and upload it to the directory you want to
protect.
Note: Once this file is uploaded into your directory, you will not be able
to see it via the web or ftp.
Note: For authnames that have more than one word (like Client Area), use an
underscore to separate the words. Do not use a space.
IE: Client_Area
Next use our hash password script to identify a user/password pair. Put this
pair, one pair per line, into another text file. Save this file as .htpasswd
and upload it to the directory that you specified on the last line of
.htaccess. For security, it is best if you put this file outside of your Web
directory so that it can't be accessed and read by hackers on the Net.

Note: The path for the password file is the server path, not the URL path.
For example,
/home/sites/www.yoursitename.com/pass/.htpasswd

You can name the password file anything you wish, as long as the name is the
same in the path. This is useful for specifying different pass files for
different directories. (memberpass, adminpass, etc.)

If you want the same group of people to access different password-protected
directories, simply give each of those directories the same authname.
Note: Once you password protect a directory, every subdirectory of that
directory will also be protected.

-----------------------
End of FAQ.
Here's the URL to the little username/password script I wrote if anyone
wants to use it:
http://www.allaboutchoice.com/support/userpassword.pl

Otherwise, you can do the entire thing through Telnet; making both files...
you'll find that in the archives. I personally find it easier to do it in a
plain-text editor on my own machine and upload it - that way I've also got a
local copy.

Now, there's lots of stuff in the archives about PAM, but on my RaQ none of
that applied. I'm not sure why, it might be some little tweak Cobalt made
with the OS or sumfin. It could apply to you, though, so check it out if
this doesn't work.

Carrie Bartkowiak

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users