Corpex - The Business Internet Company Wed 23 July 2008
GENERAL UNIX NT
 
TECHNICAL SUPPORT

General Support

Unix Support

NT Support

HOME GENERAL UNIX NT CONTACT US
  Password Protection

(So that you can limit access to your web space)

To password a sub-directory of your Web Space called 'temp', carry out the following steps;

1. Create a directory called temp and upload your files.
2. Create a file called .htaccess containing the following text (You may wish to create a file called htaccess and then rename it .htaccess once uploaded using your FTP software;

AuthType Basic
AuthName "COMMENT"
AuthUserFile /home/LOGIN/logs/.passwd
AuthGroupFile /home/LOGIN/logs/.group
<Limit GET POST>
require valid-user
</Limit>

The "COMMENT" can be replaced by any string of text you like, but must be enclosed in quotes.

The word 'LOGIN' should be replaced with your Login Id.

The line starting 'require' can also contain any of the following values;

require group group1 group2 group3 ...
require valid-user
require user username1 username2 username3 ...

You will need to use ssh to connect to the system to add users to the passwd file for your password-protected area. When logged in you will need to 'cd logs' to move into the logs directory (the default location of the .passwd file) and then use the following command syntax; htpasswd .passwd USERNAME

Note: To create a new password file, the command is:

htpasswd -c .passwd USERNAME

where 'USERNAME' is the userid you wish external users to enter at the Request Box.

Upon running this command, it will ask you to enter the password for that user id.

FIND & PURCHASE A DOMAIN NAME...
  
Please enter search without extension
e.g. 'domain' NOT 'domain.co.uk'
ENQUIRY FORM | CONTACT US
© 1996 - 2007 Corpex Ltd.
Corpex - The Business Internet Company
Visit Corpex Germany: