How to Protect Your ONID Web Directories

Replace {a} with the first letter of your username. This must be lowercase.Replace {username} with your ONID username.Replace {uX} with the user group that you are in.Login using SSH? and type "pwd". Using WinSCP you can find this information above the file list of your ONID directory. Lastly, you can guess, there should only be u1 and u2.

You will need to save this txt doc as .htaccess, or so that the name is blank, and the file extension is of type .htaccess.

At the shell:~> prompt type htpasswd -c .htpasswd {username} and press enter to create the .htpasswd file in your home directory. Replace {username} with the username you would like to user for web authentication. Note:If you wish to password protect another directory, type cd {directory path} before you create the .htpasswd file. Replace {directory path} with the directory path e.g. public_html/spring2010/assignments

Type the password you would like to use.

Retype the password you would like to use.

Move the .htaccess file from your computer to the directory you wish to password protect.