peruser/ 0000755 0047336 0047337 00000000000 10322541145 0013473 5 ustar 00cs186 cs186-staff 0000301 0000025 peruser/.htaccess 0000644 0047336 0047337 00000004647 10322535250 0015304 0 ustar 00cs186 cs186-staff 0000301 0000025 ############################################################################## # .htaccess file to set up a password-protected WEB site on an EECS # Instructional UNIX WEB server. # Further info: http://inst.eecs.berkeley.edu/setup.html#restrict # Questions to: inst@eecs.berkeley.edu ############################################################################## AuthType Basic AuthName "EECS Instrucional UNIX logon and password" ##### # the "SSLRequireSSL" directive will prevent access unless the WEB server # and client are connected using SSL, which will encrypt the password # before it is sent over the net from the client. Our WEB server called # https://inst.eecs.berkeley.edu currently is enabled for SSL [Apr 2003]. # All recent versions of Netscape and Internet Explorer are SSL-capable. ##### SSLRequireSSL ##### # the "master-access.{dir,pag}" files contain all Instructional UNIX # accounts and are refreshed by the "general-case.pl" program, which # runs via "cron" at 8 minutes past the hour, 24 hours a day. # # Enter the group name "valid" after the "require group" directive to # include the general Instructional population, ie: # # require group valid # # Comment out the AuthDBMUserFile and AuthDBMGroupFile entries to ignore # all UNIX passwd and groups on this server. ##### AuthDBMType GDBM AuthDBMUserFile /export/www/data/master-access AuthDBMGroupFile /export/www/data/master-access ##### # The "additional-users" and "additional-groups" files can be used to # list usernames and passwords for access that do not exist in the # Instructional UNIX password database. Put these files in safe place, # and set their UNIX permissions with # # chmod 644 additional-users additional-groups # # The syntax of the "additional-users" is: # # user1:VQtYd4ws/ifVQ # user2:dv4YvyWjcIMgs # # The second field is the encrypted password, which can be generated using # the command "/share/b/bin/passwd2crypt" on Instructional UNIX systems # # The syntax of "additional-groups" is: # # groupname: user1 user2 # # This defines a group, arbitrarily called "additional" ##### AuthDBMAuthoritative off AuthUserFile /home/aa/staff/kevinm/public_html/ssl/additional-users AuthGroupFile /home/aa/staff/kevinm/public_html/ssl/additional-groups ##### # "Require" must have one or more groups listed. # "valid-user" is a special group that includes everyone in "master-access" ##### #Require group valid additional Require valid-user additional peruser/index.cgi 0000755 0047336 0047337 00000001734 10322540445 0015300 0 ustar 00cs186 cs186-staff 0000301 0000025 #!/usr/sww/bin/perl -T ####################################################################### # source is ~inst/public_html/peruser/peruser.cgi # # prompts for EECS Instructional login/password # requires SSL (https:) to encrypt password (see ./.htaccess) # displays file in that is named like the login # the files it displays are located in a subdir called "./private" # the permissions on the "private" subdir are `chmod 700 ./private` # by kevinm@eecs.berkeley.edu (Oct 2005) ####################################################################### my $login = $ENV{'REMOTE_USER'}; my $file = "./private/$login"; push my @message, "
EOF peruser/peruser.cgi 0000755 0047336 0047337 00000000000 10322540445 0021116 1peruser/index.cgi ustar 00cs186 cs186-staff 0000301 0000025 peruser/private/ 0000700 0047336 0047337 00000000000 10322537622 0015140 5 ustar 00cs186 cs186-staff 0000301 0000025 peruser/private/kevinm 0000600 0047336 0047337 00000000004 10322537622 0016350 0 ustar 00cs186 cs186-staff 0000301 0000025 Ha!