Suppose we have a directory /users/www/DDD.
Note that DDD is a relative pathname (relative to /users/www/).
Create a file /users/www/DDD/.htaccess containing:
AuthUserFile /users/www/staff/DDD/.htpasswd AuthGroupFile /dev/null AuthName "Authorisation realm" AuthType Basic Require valid-userCommon pitfall : the filesystem on the webserver looks different from that on a standard unix staff system, and the .htaccess file is interpreted from the view of the webserver. Note the fact that the AuthUserFile filename includes 'staff' for staff webspace and 'wwwshare' for shared space.
To help users with systems which make it hard to create files with a . at the beginning, the configuration of the staff webserver has been modified to also use /users/www/DDD/htaccess.txt and you can use password files named htpasswd.txt. For the rest, everything works the same.
Examples :
user1:xxdcd3McfVAxg user2:bz5S97b0axNOYUsernames may be choosen freely, passwords are crypted in unix crypt style. For encrypting passwords, the genpw(1) is available on all Linux hosts. Usage:
Usage: genpw passwd salt argument salt : must be two letters or digits example : genpw secret bz output : bz5S97b0axNOYThe normal user database is only available for user authentication on our secure webserver.
Order Allow,Deny Allow from 131.211.80.0/23Or for both staff and student networks:
Order Allow,Deny Allow from 131.211.80.0/23 # staff fixed network Allow from 131.211.82.0/23 # students fixed network Allow from 131.211.113.0/25 # staff vpn clients Allow from 131.211.112.128/25 # student vpn clients Allow from 131.211.150.0/23 # beta computerleerzalen Allow from 131.211.62.0/23 # beta computerleerzalen
Order Allow,Deny Allow from 131.211.80.0/23 AuthUserFile /users/www/staff/DDD/.htpasswd AuthGroupFile /dev/null AuthName "Authorisation realm" AuthType Basic Require valid-user Satisfy Any
$ cd /users/www/mysecretproject $ chmod 705 .
Related pages
Accounts and passwords
BSCW shared workspace server
E-mail
Filesystems
General servers
SSL certificates
Security
Staff account migration ; mail-client configuration and moving mail
Staff account migration to soliscom accounts
Students account migration to soliscom accounts
Webspace
External link
Restricted link, intranet
Powered by administrivia 0.1