Documentation Project : 50 Points
Create a website that you will use to document your system.
I will
be grading this basic site on
Monday Jan. 28
.
I will talk about this on the beginning of the week next week.
Week 1 - 8 Participation
Get started on the discussion board for 10 points. Due by Midnight
Monday Mar. 11
Spring Break Mar. 18-22
.
Exercise 1 Basic Administration and the FSH standard. You may take
this as many times as you wish before
Monday Feb. 4
at Midnight.
Exercise 2 Groups. You may take
this as many times as you wish before
Monday Feb. 4
at Midnight.
Lab: Test Install - Select a Partner and install Linux according to the
specifications given you in class. - 15 Points
Lab: Install Documentation - Work on your web site. I will be correcting your
initial installation documentation on Due by Monday Feb. 11
Project: Base Install - Install Linux according to the
specifications given you in class.
Due by the beginning of class
on Monday Feb. 4
.
50 Points.
Week 3:
Monday Jan. 28
Links, Reading, Class Overview:
We will be finishing our Installs and going through user management
Utilities we will be using in class next week:
useradd
userdel
groupadd
groupdel
groupmod
usermod
vipw (CAREFUL!)
vigr (CAREFUL!)
Files for user management
/etc/shells
/etc/login.defs
/etc/default/useradd
/etc/skel
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
Files for Networking
/etc/resolv.conf
/etc/sysconfig/network-scripts/ifup-eth0
/etc/sysconfig/network
Networking Notes and my history from the past couple of days Notes from class
Here is my id on shaula and here is my results of the groups command.
Labs and Assignments:
Week 4:
Monday Feb. 4
Links, Reading, Class Overview:
Follow along in class for practice managing groups/users/filesystem Adding and Managing users, groups and basic sysadmin
Production Install Project and Documentation Project 75 points install and 25 documentation 100 total
.
We are doing the install on the second classroom session of this week. You are expected to have an
installed BEFORE the Wednesday class
on the week of
Monday Feb. 11
.
Week 5:
Monday Feb. 11
Corrections on Production Install
More on Managing Users and Groups
arpwatch
gpasswd
groups
/etc/cron.daily
NOTE root runs cron differently than users
Logs and cron jobs
/var/log/secure
/etc/logrotate.conf
man logrotate
/etc/logwatch/conf/logwatch.conf
man sysklogd
If your system does not know who shaula is: edit your /etc/resolv.conf and add
the following line at the top:
search csit.parkland.eduLinks, Reading, Class Overview:
adding or configuring a user manually:(normally you would
use useradd and/or usermod)
vipw
vigr
copy skel files
chgrp -R $HOME of user
chown -R $HOME of user
TEST it
the passwd file
the group file
/etc/shadow
/etc/gshadow
Labs and Assignments:
Lab Add a user:
Make the following system changes - Lab useradd Due by: Monday Feb. 18
in Class
Lab sorting make sure that my shell and everyone's shell
properly sorts directories the Unix way.
Due by Monday Feb. 25
Thurs. Feb 28, no classes
in class.
Project: su and mail:
Write a shell script and make it as a cron job as follows: Project su and mail Due: Monday Feb. 25
Thurs. Feb 28, no classes
before Class
apropos ssh will also show that there is a utility called
ssh-copy-id that will also copy and handle the keys for you
man ssh-copy-id
[smauney@shaula:~]$ssh-copy-id -i .ssh/id_rsa.pub polaris
is the command that I used
to copy my key from shaula to polaris and I didn't even have to really know what
was going on (but you should)
Labs and Assignments:
Lab ssh-keygen. Deploy ssh-keygen so that you can automatically
login to your machine from shaula AND so that you can automatically
login to shaula from your machine. Due Monday Feb. 25
Thurs. Feb 28, no classes
at the END of
class. I will demo it again on Monday.
Week 7:
Monday Feb. 25
Thurs. Feb 28, no classes
Links, Reading, Class Overview:
Linux Printing
Linux Printing - We now use CUPS
see the /usr/share/cups/doc/index.html on your CentOS5 systems for information about cups
- and - see the /usr/share/cups/doc/ directory on your CentOS5 systems for information about cups
man 5 cupsd.conf
The typical "lp" commands still work with CUPS such as lpq lprm
lp
apropos cups - helps find other man pages about cups
Continue working on your projects etc from last week
Most systems keep their man pages in /usr/man/manx where
the x is a number 1-8,
Fedora keeps them in /usr/share/man/manx
/etc/man.config
See: /usr/share/doc/man-pages-2.39/README and
/usr/share/doc/man-pages-2.39/man-pages-2.39.Announce
/var/cache/man/catx un-formatted man pages in Fedora
The locate Database (see cron.daily)/etc/cron.daily/mlocate.cron
HOWTO's Fedora seems pretty light on these but most systems
keep them in /usr/doc/HOWTO or /usr/doc/Linux-HOWTOs . In Fedora there
are a very small number located in /usr/share/doc in subdirectories.
Commands: locate , updatedb , wget and it's common switches , zcat , zgrep, zless , man and
it's common switches,
Labs and Assignments:
Labs manpage and Local Software
- managing system Documentation, man pages and installing local software.
Due by Monday Mar. 25
at the beginning of
class.
Lab fix user accounts
- managing user accounts
Due by Monday Mar. 25
at the beginning of
class.
Week 9:
Monday Mar. 11
Spring Break Mar. 18-22
Midterm the second day of the week of Monday Mar. 25
covering all information so far. Links, Reading, Class Overview:
Lab chattr and README - Filesystem
Attributes and user permissions.
Due by Monday Apr. 8
at the beginning of class.
Lab Service Level Agreement Discussion - 10 points
Lab motd Due by Monday Apr. 8
at the beginning of class.
For Next Week:
Project - Disaster Recovery Plans: 25 Points - You will formulate -in writing- a disaster
recovery plan for your system, including what is to be backed up, how
you will acomplish your plan and how you will recover your system in the event of a crash. This should
be a 3 or more page paper on how you plan to prepare for and recover from a
disaster. It may include a list of files but it is not just a list of files.
Due by the beginning of the second class next week,
Week 11:
Monday Apr. 1
Links, Reading, Class Overview:
Lab: You will be implementing your backup plan.
Managing Runlevels, Processes and Process Priorities
command substution using ` (backtics) has been deprecated
kill -HUP $(cat /var/run/httpd.pid) This command will send a
HUP to the httpd process
We will continue with your backup scripts for the lab.
Week 12:
Monday Apr. 8
Links, Reading, Class Overview:
In Class Lab - We will add a user by hand.
We added mothra
comment Original Mothra
UID 5539
Student Group 201
Other groups like normal student
Due: In class 10 points
Lab fstab and DVD - Edit your /etc/fstab so that you and I can mount a cd or DVD (see /dev for files such as cdrom or cdrw or dvd etc. all linking to sr0) on
/mnt/cd (manually not automatically). It should automatically detect the fstype and have the options noauto,owner,user,noexec,nosuid set.
Due by the beginning of class
Monday Apr. 22
.
Lab password protecting groups and delegating administration of a group to a user. Create a group on your system called teachers GID 975 and add smauney to it. Then set the password on it to be "dude11" Then make the user smauney the
administrator of the group.
Due by the beginning of class
Monday Apr. 22
.
Week 13:
Monday Apr. 15
Links, Reading, Class Overview:
User Limits and File Creation
man ulimit or man bash, ulimit is a shell builtin, and you can set
it as readonly if you really need to restrict a user's ability to
change their limits.
PAM is a set of library routines that control authentication and
things such as maximum concurrent logins etc.
file /etc/security/limits.conf the PAM file that controls
ulimits (if you are using PAM)
man 5 limits.conf and man bash search for
"ulimit"
put the limits in /etc/profile if you have disabled PAM
At this time I believe that most of you ARE running PAM and
you should see the file /etc/secure/limits.conf for
it's comments and examples.
Lab - ulimit: Change the ulimits for all users who have logins to your system except
for root. You
will set the following ulimits: Max Processes 300, max File Locks 100, Max open
files 400.
Due by:
Monday Apr. 29
Fri. May 2 last day to Drop
at the beginning of Class