squeak!
Syllabus Homepage
Course Overview
Course resources
Day 1
Day 2
Day 3
Day 4
Common errors
Internet Glossary
About Your Instructor
Credits: This site powered by the vi text editor, apache webserver, perl scripting, and Debian linux.
squeak!

Unix Admin pt 1, Day 2

Goals

In this session you will:
  • learn how to simplify your keyboarding life...
  • learn how to control permissions and workgroups
  • Learn how to handle common user requests
  • learn how to schedule tasks
  • learn how to backup your system
  • learn startup and shutdown procedures

Review

POST

  1. What file generally holds information about users, their passwords, etc? Where is it located? Take a peek at it to remind yourself what it looks like.
  2. How is it delimited (ie, how are the fields separated)? What are the fields and what do they mean?
  3. What is a shadow passwd system? How can you tell if your system uses one.
  4. In what file would you find group definitions?
  5. What command might one use to add a new user? To delete a user? What if there is no scripts for either of these activities? Would it be possible to do the job manually?

Simplifying your life at the keyboard

groups and permissions

  • the truth about files: all files are have one owner and one group
  • the truth about users: all users are exactly one user at a time, but they can belong to many groups at one time.

Danger!
usernames and group-names can look alike but they are not the same1. Burn this into your noggin...

group control

  • groups can have passwords
  • the user can be in many groups at once
  • some systems require the user to newgrp in order to be in that group. You change back to your default group by issuing newgrp with no argument.

skelfiles and umask

It is traditional for an admin to prepare skeleton files that will be copied to the user's directory at the time of account creation...

communicating with the user

  • echo Everybody log off now! The building is on fire! | wall
  • keep /etc/motd updated
  • talk user

USER REQUESTS: I can't log in!

tail -f your auth.log.
  • unknown user error indicates improper username
  • password error indicates wrong pass. Case?
  • no mention may indicate they are hitting another machine

USER: I can't get my email!

  • check logfiles
  • log into pop server on port 110
  • check for pop.lock
  • reset pass

USER: I forgot my password!

Reset it, and give them a good one.

USER: Can you look at this script and see why it doesn't run?

Warning! Warning! Post your schedule if necessary.

TACTICAL: forcing good passwords

  • Crack your own passwd files...
  • run it regularly, from a cronjob

Homework

Please read the following sections:
  • top 283
  • rebooting p.127-33
  • filesystems and structure pp.50-53
  • find pp72-76
  • tar pp478-480
  • networks 585-650


http://www.mousetrap.net/syllabus/admin_unix_pt1/day2.html
$Id: day2.orb,v 1.5 2002/02/11 02:22:19 mouse Exp $


© 1994-2002 jason carr.
distributed under the terms of the GNU Free Documentation License.

jason carr

Reminders

  • Classroom temperature can be wildly variable. Dress lightly and bring layers.
  • your username is based on the class title and the last two digits of your workstation's hostname.
  • remember to take your work with you.