Help:Webpw
From MMAE
<<Back to Help:WWW help
Password protection for web directories is controlled by the .htaccess file. You can read the apache webserver documentation (see above) for details, or use an automated script to create it.
The webpw script will do some trivial checking and ask some questions and build a new .htaccess file for you. Change to the directory that you wish protected, and type webpw. The script will check if you are in a web accessible directory, if you are in a solutions directory, and will prompt if it does not find these. It will then look for a shared password file in your account, and create it.
- carnot> webpw
- Change to solutions directory? y
- Class name? EML1000
- .htaccess file created.
- No password file exists.
- Enter a user name to create a new password or guess an old one: EML1000
- New password: (nothing will show here as you type)
- Re-type new password:
- Adding password for user EML1000
- Enter a user name to create a new password or guess an old one:
- (press return without typing to exit)
This will create a .htaccess file in the current directory (or in the solutions subdirectory if you answered yes at the top), and a .webpw file in your home directory containing the supplied users and passwords, which will be shared for all your classes. Which user names are used can be adjusted in the .htaccess file.
