=================================================== Assignment #03 - simple command line directory work =================================================== - Ian! D. Allen - idallen@idallen.ca - www.idallen.com Read *all* the words in this assignment before you begin to type. Available online: Monday September 17, 2012 UPDATED: 7am Wednesday September 19, 2012 UPDATED DUE DATE - see below Goals: Upgrade your Course Linux Server (CLS) password security. Learn to RTFM (see the Class Notes on how to do this). Execute some simple Linux commands. Copy-and-paste some Linux output into a plain text file and submit. Deliverables and due date: UPDATED DUE DATE: 12:00noon on Thursday September 27, 2012 1. Create some directory structure in your CLS account. I will mark this directory in your account on the CLS; there is nothing to upload for this deliverable. The DUE date applies. 2. Upload an assignment03.txt answer file before the DUE date. Late assignments or wrong file names may not be marked. Be accurate. Course Linux Server (CLS) Deliverables: I will mark CLS deliverables in your account on the CLS; there is nothing to upload for this part of the assignment. The DUE date applies. Look in the Class Notes for Lab Worksheet 3 for help in completing this assignment. File Submission method: Create a plain text file using the *exact* name: assignment03.txt Upload the file via the assignment03 "Upload Assignment" facility in Blackboard in a manner similar to how you submitted the previous assignments (but upload under assignment03). Be exact! WARNING: Some inattentive students upload Assignment #3 into the Assignment #2 upload area. Don't make that mistake! Be exact. ============================================================================== 1. Log in to the Course Linux Server using your special Linux password. Read "Guidelines for strong passwords" in http://en.wikipedia.org/wiki/Password_strength Now read this XKCD comic: http://xkcd.com/936/ Now RTFM for the Unix command named "passwd" (note the spelling). No arguments or options are needed to change your own password. Change your password to one that is more secure than the one you were given. Find a way to remember your new password. (If you forget your password, contact your Linux instructor to have it reset.) The CLS is on the public Internet; security is important. Choose your password carefully. Accounts that do not have their passwords changed before the due date of this assignment will be disabled. See your instructor. 2. See the Class Notes Lab Worksheet 3 for help in completing this assignment. Create the following directory structure in your CLS HOME directory and record (for study purposes) the series of Unix commands you used to create it: assignment03/ |-- one/ | `-- oneone/ `-- two/ `-- twotwo/ - The assignment03 directory is created in your CLS HOME directory. - Under that directory are two new directories "one" and "two". - Under directory "one" is new directory "oneone". - Under directory "two" is new directory "twotwo". You can check your work using one of these commands (use the best one): $ tree assignment03 $ tree -A assignment03 The correct output will be similar to the ASCII tree diagram above. Your instructor will mark this directory in your account on the due date. Leave it there on the CLS. Do not delete it. Note: You can create the entire directory tree above using one single command with one option and two pathname arguments. System administrators are lazy - they learn how to do things quickly. 3. Using the PS1 variable from Worksheet 3, set your prompt to include your user name, your computer name, and the basename of your current working directory. (Earlier versions of this Assignment and Worksheet set the prompt to the full working directory; this has been fixed to be only the basename of the current directory, which is shorter.) As you did in the previous assignment, copy-and-paste into the plain text submission file the command line you used to set your PS1 prompt variable (above) followed by the command line and output of the following Unix command line (note that -ls is all letters and has no digits in it): $ find assignment03 -ls The seven lines of text you copy will look similar to this, but the PS1 line will be filled in (from Worksheet 3) and your numbers and names will be different: bash-4.2$ PS1...... [user@idallen-ubuntu ~]$ find assignment03 -ls 153959 4 drwxrwxr-x 4 user user 4096 Sep 17 09:47 assignment03/ 153973 4 drwxrwxr-x 3 user user 4096 Sep 17 09:53 assignment03/two 153975 4 drwxrwxr-x 2 user user 4096 Sep 17 09:53 assignment03/two/twotwo 153967 4 drwxrwxr-x 3 user user 4096 Sep 17 09:52 assignment03/one 153974 4 drwxrwxr-x 2 user user 4096 Sep 17 09:52 assignment03/one/oneone Your submission file will contain exactly seven lines - the PS1 line, the find command line with the correct prompt (given above) followed by five lines of output. Note the changed prompt, set by changing the PS1 variable as done in Worksheet 3. 4. Submit the Plain Text file with the exact name before the due date. READ ALL THE WORDS. OH PLEASE, PLEASE, PLEASE READ ALL THE WORDS! -- | Ian! D. Allen - idallen@idallen.ca - Ottawa, Ontario, Canada | Home Page: http://idallen.com/ Contact Improv: http://contactimprov.ca/ | College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/ | Defend digital freedom: http://eff.org/ and have fun: http://fools.ca/