Free ISP UK Internet Access Service 0845 Dial-up
Step One: to find out what your home directory is, log into your shell account via telnet or ssh. Type the command pwd and press enter. This will display your home directory path. If you cannot complete this step, you do not have shell access and you cannot follow this recipe. Consult your server administrator instead.
Step Two: assuming that your web pages are in a directory called html, your home directory is /MY/HOME/DIRECTORY and that you want to password protect a subdirectory called members that already exists, enter these commands to set up password protection for the first time. Please read these commands carefully and do not type them in literally -- you must substitute the user names that you want, as well as the path of your home directory:
htpasswd -c members.pwd firstmembername
Enter a password for 'firstmembername' when you are prompted to do so
cat > html/members/.htaccess
AuthUserFile /MY/HOME/DIRECTORY/members.pwd
AuthName Members
AuthType Basic
require valid-user
Press CONTROL-D at this point
Of course you may also use a text editor such as vi or pico to create the .htaccess file. You may even create it in notepad and upload it by FTP or SCP.
Step Three: later, when you wish to add another account, follow this much simpler recipe. Please note: you do NOT use the -c option when adding another account! -c creates a new password file and deletes your existing accounts.
htpasswd members.pwd newmembername
Enter a password for 'newmembername' when you are prompted to do so
If you receive error messages, reread this recipe very carefully. If you still receive error messages, talk to your server administrator.
Return to How do I password-protect my web pages?
at http://www.free-isp-uk.co.uk/index.php/52.
Start using our free anonymous UK ISP service
now, no sign-up needed!
Dialup Number: 0845 123 2020
Username: free
Password: isp
Mailserver: mail.free-isp-uk.co.uk
If you need instructions on how to setup your computer to use Free UK ISP see our internet dial-up set-up instructions service.