--------------------------------------------------------- DAT2330 - Floppix Practice Lab Test - 20 fake marks total --------------------------------------------------------- *** This is not a real test. It is a practice test. *** Ian D. Allen - idallen@ncf.ca February 9/10, 2000 1. Boot Floppix with DHCP-style networking enabled (select 3.) Mail will not be needed - select "1. - Practice Only". Printers are not needed - just push ENTER to skip over printers. Log in to Floppix as you. Make sure you can ping the host "acadaix". Don't start this lab until you can ping "acadaix". 2. (5 marks) Create a file that is a copy of the Floppix password file with all records removed that have only an asterisk in the second field (password). The new file will contain only lines that have an actual encrypted password; delete the records with asterisks. You may use any tools you know to generate this file. Do not alter the real password file! You can pick any file name you like for the copy. Hint: The resulting file will have only four records in it. 3. (5 marks) In the new file, on the line that is the userid called "alterego", edit the fifth field (gecos) to be your Full Name followed by a single comma followed by your student number. Remove the other commas in this field; leave only one. Do not touch any other fields or records. 4. (5 marks) Rename your new, edited file to be your student number followed by five randomly chosen letters (your choice), e.g. the file name will look something like this: 040837625wugga The number is your student number. You choose any five letters. 5. Use ftp to upload the renamed file to this IP address: $ ftp 205.211.47.90 Userid: guest Password: dat2330 ftp> put 040837625wugga Note the number of bytes you uploaded. (It shouldn't be zero!) 6. (5 marks) Use the built-in "chmod" command in ftp to remove all permissions except "owner read" from the file you just uploaded. The built-in chmod has exactly the same syntax as the Unix chmod command, except that it only understands octal numbers for the permission argument. 7) Use the built-in "ls" command in ftp followed by the name of the file you just uploaded and whose permissions you just changed. Verify that the permissions are correct (only permissions for the owner of the file to read the file) and that the file is not empty. Note: You must give the file name argument to the "ls" command. Fix anything that looks wrong. 8) Leave ftp. Shut down Floppix and reboot your PC back into Windows. Celebrate. Then go learn some more about the VI text editor.