GETTING A NEW PASSWORD ON YOUR BORG ACCOUNT -------------------------------------------- Your account on borg.cs.dal.ca is ready, and you have received your temporary password by email. The first thing to do is to change the password. For this do the following: - Get an MS-DOS window on your machine. - To the MS-DOS prompt type telnet borg.cs.dal.ca A telnet window will pop up. - Put in your login id, ecmmN, where N is your group number, N=1,2,...,10(press ENTER) and temporary password (press ENTER). - Into the borg terminal window type: passwd and provide the temporary password first, and then the new password. From this point on, use the new password in all your interactions with borg.cs.dal.ca, include transfer of files. NOTE: This password is totally distinct from: 1. the password you may use to protect your web pages, as described in: http://www.cs.dal.ca/~igip/passwordProtection.txt 2. the username ecmm and the password send to you by email, that you use to access the IEEE and ACM digital libraries via a proxy server, as described in: http://www.dal.ca/~techlib/cspop/connect.html Enter these where it says in the instructions for proxy server connection: "You will be prompted for your username and password. Type in your "borg" username. Your password is your faculty/staff/student ID. " So you do not need your student ID, and you do not have (nor need) an individual borg username. For all commands shown below (MS-DOS, borg, ftp, etc.) press the ENTER (carriage-return) key after typing the command to execute it. PUBLISHING YOUR REPORTS ------------------------ To publish your project report or individual assignment report, you must transfer your report to directory public_html under your group home directory on borg.cs.dal.ca using the file transfer protocol (ftp). Your login name is ecmmN, where N is your group number (1,2,...,10) Name your group project report projectN.html Name your individual assignment reports yourLastNameTech.html yourLastNameLaw.html yourLastNameBusi.html (good naming conventions are very important in facilitating management of large numbers of files). The Web is case-sensitive, so please ensure that the original files on your PC have the right case in their names as shown above. Wrong case is a different name for the Web, leading to potential frustration for both you and the instructors. Step 1: -------- Transferring your html file to borg using ftp - Under the Windows Start menu (and possibly under Accessories), select MS-DOS command. This gives you an MS-DOS window. - To the MS-DOS prompt, type cd c:\blah\blahblah\myReport.html where c:\blah\blahblah is the pathname of the folder(directory) containing your html file, myReport.html (or whatever name you have picked). If you are unfamiliar with DOS pathnames, you can use Windows Explorer to visit the folder containing your file, and near the upper right corner of the Explorer window you will see "Contents of c:\blah\blahblah\". This is the pathname you need. - In the MS-DOS window, type ftp borg.cs.dal.ca Enter your group login id and your group password. Now you have an "ftp" prompt, that accepts ftp commands. - To the ftp prompt, type cd public_html send myReport.html If you want to upload multiple files via ftp from your PC to borg use "mput" instead of "send". To upload multiple files, you use the * (wildcard) that matches any number of any characters in the name. For example: - To transfer all files from the current directory on your PC use mput * - To transfer all files that start with a w (upper or lower case, the PC is case insensitive) use mput w* - To transfer all gif files in the current directory on your PC use mput *.gif - when transfer is complete, type quit to leave the ftp prompt and return to the MS-DOS prompt. NOTE: There are interactive ftp programs with graphical interfaces built on top of ftp that make the above task more pleasant. Many are freely available on the web. One example of such a program can be found in: http://www.cs.dal.ca/~igip/ftpSoftware/ Furthermore, sophisticated web-site editing and maintenance programs, include a facility for easy uploading and downloading files. Step 2: ------- Setting the permissions for the html file on borg. Your html file now has the following URL on the Internet (for group 1): http://www.cs.dal.ca/~ecmm1/myReport.html - To the MS-DOS prompt type telnet borg.cs.dal.ca A telnet window will pop up. - Put in your login id (press ENTER) and password (press ENTER) - to the borg prompt, type cd public_html chmod go+rx * To close the MS-DOS window, type exit to the MS-DOS prompt. Close the telnet window (menu: Connect -> Exit). Useful commands: - To delete a file (if you wish to do so) do: rm file - To list the files and directories in the current directory(folder) do: ls - To see the contents of a text file, do: more filename - Note that the commands cd, rm, ls, more, and mkdir correspond to actions you perform with the Windows Explorer program under Windows] Step 3: -------- The last step is to password protect your web site. To do this follow the instructions in http://borg.cs.dal.ca/~igip/passwordProtection.txt Step 4: -------- Now you should be able to point your browser on your home machine to: http://www.cs.dal.ca/~ecmmN/yourfile.html and browse the file you just installed. With password protection set up, a window will pop up asking for your user name (ecmmN, where N=1,2,..,10) and your password (same as your account password). Instructors have access to your web sites with user name "inst" and a secret password only they know. NOTES: ------ 1. The programs telnet and ftp that you are using are subject to attack by password sniffers. These are programs run by hackers that examine packets to detect login id's and passwords. If the packets are unencrypted (which is the case with telnet and ftp) then login id and password allows the hacker access to the system as this particular user. The way to protect against this attack is to use secure versions of telnet and ftp (not available on standard Windows 95 as far as I know), that encrypt the packets and hence inhibit password sniffing. Systems managers keep complete logs of all the logins attempted over the network (and from which machine) and all the commands executed, so they can go back and trace the source of the attack. Detecting that an attack has taken place is more difficult: it can only be detected through strange things that the hacker might do (like transfer huge files that consume a lot of network bandwidth and are flagged by network management programs that monitor the network). 2. DO NOT HESITATE TO EMAIL ME IF YOU RUN INTO ANY PROBLEM WITH THE ABOVE INSTRUCTIONS. IT WILL BE SOMETHING VERY SIMPLE THAT IS NOT WORTH WASTING YOUR TIME OVER IT. TO BE ABLE TO HELP WITH YOUR PROBLEM, YOU MUST TELL ME **EXACTLY** WHAT YOU TYPE AND THE RESULT. 3. How password protection of web pages works. Two files, .htaccess and .htpasswd are placed in the public_html directory, containing the id and password required to access any file in that directory. If you do "ls" you do not see these files (in UNIX file names starting with . correspond to "service" files and they do not show up). You can force them to appear by doing "ls .ht*". You can inspect the contents of these files by "more .htaccess" and "more .htpasswd". You will see that your password appears encrypted in .htpasswd (for safety no passwords are stored unencrypted on a UNIX machine). The program "htpasswd" creates the encrypted password, and it is available as /usr/local/apache/bin/htpasswd on borg.cs.dal.ca If you recall the lecture, apache is the server program (the counterpart of the Netscape client program). htpasswd is a utility associated with apache. The password protection service is offered by the apache server program. HOW TO DOWNLOAD FILES FROM THE ACM DIGITAL LIBRARY -------------------------------------------------- The following instructions show a somewhat cumbersome way to download ACM digital library papers, via telnet to borg.cs.dal.ca The proxy approach described in http://www.dal.ca/~techlib/cspop/connect.html is, of course, the preferred method. From eem Mon Apr 26 09:01:14 -0300 1999 From: Evangelos Milios Subject: how to access ACM Digital Library materials cc: Teresa.Scassa@Dal.Ca, Michael.Deturbide@Dal.Ca Using your Dalhousie account you can access ACM Digital Library materials, by using "telnet" to login to your account and then "lynx" (the bare bones text oriented web browser) to download the paper. It is possible to use Netscape instead of lynx via your Dalhousie account, but you will need to install a special program on your PC, and go through a set of complex actions to set this program up. Lynx achieves the same goal in a much simpler way: 1. Execute lynx http://www.acm.org/dl 2. Use the down arrow of your keyboard to highlight browse the digital library then press "Enter" 3. Use the down arrow to highlight ACM Journals and Magazines then press "Enter" 4. Similarly visit: Communications of the ACM Volume 42 Building Consumer Trust Online Full text in PDF format 5. Do NOT press "Enter" when you got to the "full text", but press "d" instead (for download). When it has downloaded the file, it will ask "Save to Disk" (near the top) and a filename ending in pdf (p80-hoffman.pdf) down below. Then press "Enter". This will save the pdf file in the directory where you were standing when you launched lynx (this will either be your home directory, if you logged in without executing a "cd" command, or public_html, if you executed "cd public_html". To print the file, you need to transfer it back to your home computer, open it with "Acrobat", and print it. To transfer it back to your home computer, you follow the instructions for ftp, except that you issue the ftp commands binary get filename.pdf where you would have issued send yourfile.html The command "binary" sets the ftp into a mode to transfer binary files (such as the pdf file, and image files like gif files). The default mode is to transfer "ascii" files (such as all your html files). If you wish to transfer ascii files after you have gone into binary mode, just issue the ftp command to go back to ascii mode. Disclaimer: I do not know the legal status of such action. I am just telling you what is technically feasible. Since you are part-time Dalhousie University students for the purposes of this course, you are probably entitled to use the library services of the Dalhousie community, of which access to the ACM digital library is one. You may want to discuss this with the law professors in the policy modules of the e-comm course.