[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] password protecting a directory
- Subject: Re: [cobalt-users] password protecting a directory
- From: "Robert Davis" <rdavis@xxxxxxxxxxx>
- Date: Sat, 27 Nov 1999 07:31:53 -0500
Ahoy
1) Yes, bot the .htaccess and .htpasswd files will be hidden. Any file
beginning with a dot is hidden from view. To see it, try the command "ln -a"
to list hidden files. And, while you are at it, experiment with other handy
"ls" options, such as "ln -al" or my favorite, "ls -al | more". If you type
man ls, you will get a list of these options.
These days, you can score an old 486 for free. Keep an eye out for one, and
grab it. Even though it doesn't have a CD, you can install Debian Linux from
floppy. It's easy to do, available from www.debian.org free, and supports
numerous architectures, including even an old PS2 with micro-channel. You
don't need X-windows or any of that complication. This will give you a nifty
little test bed, where you can install all sorts of manuals to refer to and
experiment with new editors like "joe", and play with "ls" and such. It is a
quick way to answer simple Linux questions. I have one of these behind me
here at home, and another across the room at work. They get a lot of use,
because I am a beginner.
For instance, on your 486 testbed, you can quickly learn how to make an
alias "lm" in your ".profile" (another dot file) point to "ls -al | more",
so that, next time, you get a list of files, attributes, sizes, owners,
etc., just by typing "lm".
2) Your server error comes because somewhere in your .htaccess file you did
not follow the example syntax scrupulously. Try it all again, paying
particular attention to spacing, spelling, etc. It will work.
Aloha
R Davis
-----Original Message-----
From: Dynamic-IT <info@xxxxxxxxxxxxxx>
To: cobalt-users@xxxxxxxxxxxxxxx <cobalt-users@xxxxxxxxxxxxxxx>
Date: Saturday, November 27, 1999 5:31 AM
Subject: [cobalt-users] password protecting a directory
>Hello,
>
>We are trying to password protect a directory following the instructions
>from
>the Cobalt site:
>----------------------------------------------------------------
>1. Telnet in, and login as the User or admin
>2. Navigate to the directory you want to password protect.
>3. Create the .htaccess file, it should contain the following lines:
>
># Access file
>order allow,deny
>allow from all
>require valid-user
>Authname DirectoryName
>AuthPAM_Enabled off
>Authtype Basic
>AuthUserFile /home/sites/sitename/web/directory/.htpasswd
>
>Replace sitename and directory as appropriate.
>
>Note: If you want to use the systems' /etc/passwd file for authentication
>you can eliminate the AuthUserFile line from the .htaccess file above.
>
>4. Now you must create the .htpasswd file using the htpasswd tool.
>a. Type the following command to create the file and add a user:
>htpasswd -c .htpasswd username
>b. You will be prompted for the users' password twice.
>5. If you need to add additional users to the file, use the command above
>without the -c.
>----------------------------------------------------------------
>
>We telnet as admin (su) to the directory of the virtual site we wish to
>protect. Then with pico we
>try to create the .htaccess file. When we save the file we assign the name:
>.htaccess
>We cannot see this file using the ls command, is this right? Or do we save
>it with a wrong name?
>
>the command: 'htpasswd -c .htpasswd username' works but again the created
>.htpasswd file
>is hidden?
>
>When we browse to the protected directory we get the error: The server
>encountered an internal error or misconfiguration and was unable to
complete
>your request.
>
>What are we doing wrong?
>
>Thanks in advance,
>
>Dennis de Gelder.
>
>
>
>
>
>_______________________________________________
>cobalt-users mailing list
>cobalt-users@xxxxxxxxxxxxxxx
>http://list.cobalt.com/mailman/listinfo/cobalt-users
>