--------------------------------------------------------------------- DAT2330 - Assignment 2 - Floppix - 25 marks total - 5% of course mark --------------------------------------------------------------------- Ian D. Allen - idallen@ncf.ca Due: Step 6 (below) must be finished by 2pm Tuesday February 15. Repeat the Practice Test you did this week (a copy is contained in file practice_lab.txt in this directory), with the following changes: (If you have Floppix configured correctly for networking at home, you can even do the upload part of this assignment from home!) Steps 1 and 2 and 3 are the same as the practice test, except you may use the host name "netsrv.algonquinc.on.ca" instead of "acadaix". Don't start this lab until you can ping "netsrv.algonquinc.on.ca". Step 3.5 (NEW): (5 marks) Append to the end of your new file a list of all the files and directories, including hidden files, in the root directory on your Floppix system. The listing must include the inode number of each file, as well as the permissions of each file. The listing must appear in numeric order by inode (with small inode numbers at the top and big inode numbers at the bottom of the listing). Be careful to *append* this list of files and directories! Do not overwrite the previous contents of your file that you just prepared. Do not append the listing more than once - only one copy is needed. You may wish to experiment with producing this listing on your screen before you redirect the output and append it to your existing file. Step 4 is the same as the practice test. Replace Step 5 (NEW): Upload your file to the machine named netsrv.algonquinc.on.ca in the pub/common.use/dat2330 directory. Note the addition of the cd command to change to that directory before you do the upload: $ ftp netsrv.algonquinc.on.ca Userid: ftp Password: ftp ftp> cd pub/common.use/dat2330 ftp> pwd 257 "/pub/common.use/dat2330" is current directory ftp> put 040837625wugga Note the number of bytes you uploaded. (It shouldn't be zero!) Make sure you upload to the correct directory! Replace Step 6 (NEW): (5 marks) Use the built-in "chmod" command in ftp to remove all permissions except read permission for user, group, and other 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. The resulting file will have only read permission for user, group, and other. Steps 7 and 8 are the same as the practice test.