% CST8207 Week 12 Notes – users and groups, disks, partitions, file systems, fdisk % Ian! D. Allen – – [www.idallen.com] % Winter 2015 - January to Apil 2015 - Updated Wed Apr 1 12:32:55 EDT 2015 Readings, Assignments, Labs, Tests, and ToDo ============================================ - Read (at least) these things (All The Words): 1. [Week 12 Notes HTML] – this file – **Read All The Words** 2. [Users and Groups - /etc/passwd, /etc/group, su, sudo, chsh, useradd, gpasswd, etc.] 3. [Unix/Linux Partitions and File Systems - fdisk, mkfs, mount, swap] 4. [List of Commands You Should Know] 5. [Video Tutorials on Lynda.com] - Create your [lynda.com] account and watch [Unix for Mac OS X Users] - **4. Ownership and Permissions 34m 58s** - The `root` user 1m 57s - `sudo` and `sudoers` 5m 20s Assignments and Lab work this week ---------------------------------- **Reminder:** There are now two quizzes that you need to complete on Blackboard as part of your term Quiz mark. A third quiz will be posted before the Final Exam. 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: - Bonus (optional) [Assignment #04 HTML] – the VIM text editor (extended due date again and again and again) - [Assignment #08 HTML] – CentOS virtual server installation - Bonus (optional) [Assignment #09 HTML] – Midterm #2 corrections - There is a checking program available to check your file format for this bonus assignment, but only people who Read All These Words will know about it. Wrong format means no marks. - [Assignment #10 HTML] – setting permissions, mode, umask - [Assignment #11 HTML] – tar, processes, syslog, crontab, at, mail - [Assignment #12 HTML] – CentOS: User and Group management (Megadeth) - [Assignment #13 HTML] – CentOS: Partitions, File Systems, single user, run levels, services - Really do **Read All The Words**. You don’t get a second chance to get it right. - Work on the above assignments in your lab period; ask questions. - [Worksheet #08 ODT] – Linux file system permissions (modes) - This Worksheet is a prerequisite for [Assignment #10 HTML] - [Worksheet #08 PDF] – PDF version - [Worksheet #08 HTML] – HTML version - `chmod, ls -lid, umask` Tests and quizzes ----------------- For full marks, read the [Test Instructions] (all the words) before your final exam. Attend a free workshop on [Preparing for Exams - Test Taking Skills and Test Anxiety] April 7 or April 14. 1. All Quizzes are open until the Final Exam, then they are closed. - Quizzes are random samples and thus do not cover all of the questions in the practice test PDF file. Do the PDF file to be fully prepared. 2. Final Exam: 180 minutes; Tuesday April 21 11am to 2pm in room C144 - Take a bathroom break before you sit down for three hours! - A third set of practice questions is posted. See [Practice Tests and Answers]. The third quiz, based on this set of questions, will be out soon. - The final exam emphasizes material after the second midterm test, but it covers the whole course and therefore includes material from **all** the practice question sets. 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 ======================================== - User and Group management: The Megadeth assignment - How to create an inode (e.g. a file or a directory) that only two users can read/write? - Some practice questions for the final exam are posted. See [Practice Tests and Answers]. - [Assignment #12 HTML] is ready. - [Assignment #13 HTML] (the last assignment) is ready. - Due dates extension to end of term? - Attend a free workshop on [Preparing for Exams - Test Taking Skills and Test Anxiety] April 7 or April 14. Real Sysadmin Work ================== EFF documents PANIC in Security Experts --------------------------------------- - April 1: - *MITRE has announced the PANIC vulnerability, a critical security flaw which affects the server administrators and software developers underpinning almost every interaction we have with the Internet.* GitHub is Under Continuous Cyber Attack from China -------------------------------------------------- - - *The collaborative project development website is facing a massive DDoS (distributed denial-of-service) attack.* Canadian Jobs at Fibernetics ---------------------------- - - *Cloud at Cost is the fastest growing cloud provider and has openings for 10 support staff to work ether local or remote.* - **Essential skills:** Understanding of popular versions of Linux, Windows and TCP/IP networking. 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 midterm tests because questions re-appear. - For practice tests and quizzes, see the [Practice Test README][Practice Tests and Answers] - 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. - process quotes, split on semicolons and pipes next, then do redirection - What are the Four Rules for Output Redirection? Three Rules for Pipes? - [Unix Shell I/O Redirection (including Pipes)] Program or be Programmed: Ten Commands for a Digital Age -------------------------------------------------------- - Best-selling author and technology visionary Douglas Rushoff offers his insights and perspectives on humanity’s role in the bright new future: Locked out of the Course Linux Server ------------------------------------- Another second-term student locks himself out: Mar 28 15:59:58 Failed password for xxxxnnnn from 99.240.181.65 Mar 28 16:00:07 Failed password for xxxxnnnn from 99.240.181.65 Mar 28 16:00:21 Failed password for xxxxnnnn from 99.240.181.65 Mar 28 16:00:30 Failed password for xxxxnnnn from 99.240.181.65 Mar 28 16:00:51 Failed password for xxxxnnnn from 99.240.181.65 Mar 28 16:01:09 Failed password for xxxxnnnn from 99.240.181.65 Mar 28 16:01:57 Failed password for xxxxnnnn from 99.240.181.65 Mar 28 16:02:08 Failed password for xxxxnnnn from 99.240.181.65 Mar 28 16:02:55 Failed password for xxxxnnnn from 99.240.181.65 Mar 28 16:03:06 Failed password for xxxxnnnn from 99.240.181.65 Mar 28 16:03:24 Failed password for xxxxnnnn from 99.240.181.65 Mar 28 16:05:36 refused connect from cpe0c473da2de41-cm0c473da2de40.cpe.net.cable.rogers.com (99.240.181.65) Attacks on the Course Linux Server ---------------------------------- - Count the attacks: `fgrep -c "refused connect" /var/log/auth.log` - Another way to count the lines (less efficient): `fgrep "refused connect" /var/log/auth.log | wc` - Only show the last 10 lines: `fgrep 'refused connect' /var/log/auth.log | tail` - See the current list of *evil* host IPs: `less /etc/hosts.evil` * * * * * ![Read All The Words by Alex and Colin] ![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/ [Users and Groups - /etc/passwd, /etc/group, su, sudo, chsh, useradd, gpasswd, etc.]: 700_users_and_groups.html [Unix/Linux Partitions and File Systems - fdisk, mkfs, mount, swap]: 720_partitions_and_file_systems.html [List of Commands You Should Know]: 900_unix_command_list.html [Video Tutorials on Lynda.com]: 910_lynda_index.html [lynda.com]: http://algonquincollege.com/onlineresources/mobileStudent/lynda.htm [Unix for Mac OS X Users]: http://www.lynda.com/Mac-OS-X-10-6-tutorials/Unix-for-Mac-OS-X-Users/78546-2.html [Worksheet #08 ODT]: worksheet08.odt [Worksheet #08 PDF]: worksheet08.pdf [Worksheet #08 HTML]: worksheet08.html [Test Instructions]: 000_test_instructions.html [Preparing for Exams - Test Taking Skills and Test Anxiety]: http://www.eventbrite.ca/e/preparing-for-exams-test-taking-skills-and-test-anxiety-tickets-15929284920 [Practice Tests and Answers]: PRACTICE_TEST_README.html [Unix Shell I/O Redirection (including Pipes)]: 200_redirection.html [Read All The Words by Alex and Colin]: ian_algonquin2014_read_all_the_words.jpg "Photo by Alex Lemoine and Colin Hough" [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Plain Text]: week12notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/