One of those things is security. For any particular set of web pages, a list of users may be defined, and those users given passwords. If someone does not have a user name and matching password, they are unable to see the page.
This is not the most secure mechanism imaginable. The passwords are sent over the Internet as plain, unencrypted text, and may be intercepted between the user and rdwarf.com. While stored on rdwarf.com, they use an old-fashoned and relatively easily broken storage mechanism. If the pages in question require very secure access, this is not an appropriate mechanism. However, for many things, it will more than suffice.
AuthName "Area Name"The AuthName defines a name for this secure area. Any page with the same name defined will only ask for passwords once per session, so multiple pages can use the same passwords and not be asking the user constantly. That name will also be shown in the user's browser when they are asked for a password.
AuthType sets the type of authentication to the kind we use.
AuthUserFile lists the complete path to the .htpassword file to be checked for passwords. This can be anywhere in your home directories, really, and different places can point to the same one, so you can have several directories that use the same set of users and passwords. For the user directories on rdwarf, paths look something like /home/username/public_html/whatever.
require valid-user means that to display the page, they must have a valid username and password.
To create a new .htpassword file and put a user in it, use the command:
htpasswd -c .htpassword userhtpasswd will then prompt you twice for that users's password.
To add a user's password to an existing .htpassword file, leave out the -c, which means "create".
htpasswd .htpassword anotheruserTo remove a user is a little trickier. You need to edit the .htpassword file, and take out the line that begins with the user's name.
pico filenameThe editor will come up on your screen. Your arrow keys should move the cursor around. Control-K will delete (kill) an entire line, and control-X will eXit the editor, and ask if you want to save first. There's a few useful keys displayed on the screen, and Control-G will "Get help".
mv oldname newname
dos2unix filenameTo go back to a Windows file, so you can cope with it under Windows, use the command: