% CST8207 Week 09 Notes - file system permissions, mode, umask % Ian! D. Allen - - [www.idallen.com] % Fall 2013 - September to December 2013 - Updated Thu Nov 21 14:12:59 EST 2013 Readings, Assignments, Labs, and ToDo ===================================== - Read (at least) these things (All The Words): - [Week 09 Notes HTML] - this file - **Read All The Words** - [Unix Modes and Permissions, whoami, id, groups, ls -l, chmod] - [Permissions masking with umask, chmod, 777 octal permissions] - [List of Commands You Should Know] - Using your [lynda.com] account, watch [Unix for Mac OS X Users] - **4. Ownership and Permissions** - Who am I? 4m 3s - Unix groups 1m 52s - File and directory ownership 6m 41s - File and directory permissions 4m 27s - Setting permissions using alpha notation 6m 49s - Setting permissions using octal notation 3m 49s Assignments this week --------------------- Check the due date for each assignment and put a reminder in your agenda, calendar, and digital assistant. - Read (All The Words), Do, and then Submit via Blackboard: - Optional BONUS assignment: [Assignment #04 HTML] – learning the VIM text editor. (Optional BONUS for extra marks.) - [Assignment #06 HTML] – [Quoting] and [Startup Files] - [Assignment #08 HTML] – [Search Path], [Hard Links], and [Disk Use] - Assignment #07 HTML (not ready, but see the checking script below) – installing and configuring CentOS in a VM, using [CentOS Installation and Configuration] and [CentOS VMware Tools Installation] Lab work this week ------------------ - [Worksheet #06 HTML] – *Optional* VIM Text Editor Practice - This is an *optional* worksheet for an optional BONUS [Assignment #04 HTML] using the `vim` text editor. - Optional Reading: [The VI (VIM) Text Editor] - Optional command-line VIM tutorial: the `vimtutor` program on the CLS. - [CentOS Installation and Configuration] - Assignment #7 will verify this installation. - Preliminary checking script ready: see the notes below. - [CentOS VMware Tools Installation] - Assignment #7 will verify this installation. - Preliminary checking script ready: see the notes below. Midterm Test #2 - Week 10 - Monday November 4 - 25% ==================================================== - Midterm test dates are posted on the [Course Home Page]. - Midterm Test #2 (Mon Nov 4) covers: - anything from the previous midterm test, especially questions that were not answered correctly, plus: - weekly notes, labs, quizzes, and assignments for Weeks 1 through 8 inclusive. - The emphasis is on material covered since the previous test. - Material in [Assignment #08 HTML] is relevant to this test. - For practice tests and quizzes, see the [Practice Test README] - For full marks, you must read the [Test Instructions] before the test for important directions on how to enter your answers, your lab section number, and the test version number on the question sheet and the mark-sense forms. - There may be more questions on the test than you can answer in the time allowed; answer the ones you know, first. Learning the Material --------------------- - You learn the material because you want to be a Computer Systems Technician. - You like doing this work; you want to be good at it. - Review your mistakes on the first midterm test (questions re-appear). - For practice tests and quizzes, see the [Practice Test README] - Review the commands used in each lab worksheet (and their common options). - [Unix/Linux Command List][List of Commands You Should Know] - Review how the shell works: GLOB, redirection, quotes - Know **why** the shell behaves that way. Copy/paste teaches you nothing. - split on semicolons and pipes first, then do redirection - What are the Four Rules for Output Redirection? Three Rules for Pipes? - [Unix Shell I/O Redirection (including Pipes)] From the Class Notes link on the Course Home Page ================================================= - Review last week. Did you do everything assigned last week? From the Classroom Whiteboard/Chalkboard ======================================== - Your in-class notes go here. - [Take Notes In Class] - In-class exercise: Create one of these symbolic link targets in /tmp Use your CLS userid as the link name in /tmp You may have to remove an existing name first Easy target: linux Medium target: symbolic link Hard target: $$$ It's a "symbolic link" $$$ You can check your work by executing the script `/tmp/do.sh` Preliminary CentOS checking =========================== The CentOS checking program is still being written. Here’s what you can do so far: On the CLS, create your `assignment07` directory in the usual place. Then log in to your CenOS machine (as `root`) and run these three commands on your CentOS machine, replacing *abcd0001* with your own CLS userid in the third one: # cd /tmp # curl -A mozilla http://teaching.idallen.com/cst8207/13f/notes/data/assignment07do.sh >do.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 112 560 112 560 0 0 9433 0 --:--:-- --:--:-- --:--:-- 1931 # USER=abcd0001 sh do.sh --------------------------------------------------------------------------- abcd0001: FETCH version 2. Connecting to CLS as USER='abcd0001' using ssh --------------------------------------------------------------------------- abcd0001: Use local Algonquin IP cst8207-alg.idallen.ca [y/N]? y abcd0001: Please wait; using ssh to connect to user 'abcd0001' on cst8207-alg.idallen.ca ... abcd0001@cst8207-alg.idallen.ca's password: *** COURSE LINUX SERVER *** --------------------------------------------------------------------------- idallen-ubuntu assignment07fetch_server.sh version 4 run by abcd0001. Please wait; collecting info from abcd0001 Virtual Machine --------------------------------------------------------------------------- VM files collected into CST8207-13F/Assignments/assignment07/abcd0001.tar.bz on CLS. Now running checking program for abcd0001 on CLS: ---------------------------------------------------------------------------- check: idallen-ubuntu Fri Oct 18 12:48:40 2013 check: CST8207 assignment07 check program version 37 *** Checking account for abcd0001 on idallen-ubuntu *** Going into HOME directory /home/abcd0001 on idallen-ubuntu GOOD(2): Found correct 'source' statement in .bash_profile GOOD(2): Found non-interactive return first line in .bashrc GOOD(1): Found PS1= line in .bashrc Going into directory CST8207-13F/Assignments/assignment07 on idallen-ubuntu *** 4.? CLS: Set Up Tasks in assignment07 on idallen-ubuntu *** On idallen-ubuntu: Using abcd0001.tar.bz dated Fri Oct 18 12:48:40 2013 Checking 'abcd0001.tar.bz' version 4 created Fri Oct 18 12:48:40 EDT 2013 *** 4.? CentOS 6.4 Installation Verify *** GOOD(2): Found correct hostname NOTE: Found correct kernel running GOOD(2): Found correct number of RPM packages (201) GOOD(2): Found correct memory size GOOD(2): Found correct Toronto time zone *** 4.? CentOS 6.4: Grub menu and time-out *** GOOD(2): Found correct time out line in CentOS 6.4 grub.conf GOOD(2): Found correct hidden menu line in CentOS 6.4 grub.conf *** All Done *** WARNING: Cannot find submission file 'assignment07.txt' on CLS ---------------------------------------------------------------------------- *** CHECK SCRIPT NOT FINISHED YET - SOON *** ---------------------------------------------------------------------------- Real Sysadmin Work ================== - [NYT: Build a Secure Internet – no NSA] - [French police abandon Windows for Linux] - - [French police abandon Windows for Linux][1] - - [Take Notes In Class] ![Take Notes in Class] -- | 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/ [Plain Text] - plain text version of this page in [Pandoc Markdown] format [www.idallen.com]: http://www.idallen.com/ [Unix Modes and Permissions, whoami, id, groups, ls -l, chmod]: 500_permissions.html [Permissions masking with umask, chmod, 777 octal permissions]: 510_umask.html [List of Commands You Should Know]: 900_unix_command_list.html [lynda.com]: https://lyceum.algonquincollege.com/Lynda [Unix for Mac OS X Users]: http://wwwlyndacom.rap.ocls.ca/Mac-OS-X-10-6-tutorials/Unix-for-Mac-OS-X-Users/78546-2.html [Quoting]: 440_quotes.html [Startup Files]: 350_startup_files.html [Search Path]: 400_search_path.html [Hard Links]: 455_links_and_inodes.html [Disk Use]: 457_disk_usage.html [CentOS Installation and Configuration]: 000_centos_install.html [CentOS VMware Tools Installation]: 000_centos_vmware_tools.html [Worksheet #06 HTML]: worksheet06.html [The VI (VIM) Text Editor]: 300_vi_text_editor.html [Practice Test README]: PRACTICE_TEST_README.html [Test Instructions]: 000_test_instructions.html [Unix Shell I/O Redirection (including Pipes)]: 200_redirection.html [Take Notes In Class]: http://read101.ca/1013/03/algonquincollege.html [NYT: Build a Secure Internet – no NSA]: http://www.nytimes.com/2013/10/09/opinion/lets-build-a-more-secure-internet.html [French police abandon Windows for Linux]: http://www.zdnet.com/french-police-move-from-windows-to-ubuntu-linux-7000021479/ [1]: http://news.techeye.net/software/french-police-switch-to-desktop-linux [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Plain Text]: week09notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/