quota is your main weapon. Here is a sample entry:
Quotas for user bob:
/dev/hda1: blocks in use: 34496, limits (soft = 35000, hard = 50000)
inodes in use: 441, limits (soft = 0, hard = 0)
- you will need to set quotas on any partition you want to protect (this will affect how you set up new systems)
- use
edquota -u user to set quota
- use
edquota -t to set system time limits
- use
edquota -g group to set group quota
- use
edquota -p prototypical user user to set quota from the prototypical user
- use
repquota -a to see how everybody's doing
- quota is impersonal
control resources at the shell level
- log straight into application
- log straight into menu
- log into a restricted shell like
rbash pp 187
- use a shell wrapper (a safe sandbox) like lshell:
root - // No limits for root
mouse -
default C60P30D20F24 // Default limits, 60 min's CPU time, 30 processes, 20Mb, 24 file descriptors
learn how your server relates to its network
- tcp/ip
- hostname
- localhost
- fakenets
- inetd v. daemons
- ping
- traceroute
- nslookup
- whois
Homework
- nfs pp.607-15
- memory bottlenecks pp.303-12.
http://www.mousetrap.net/syllabus/admin_unix_pt3/day3.html
$Id: day3.orb,v 1.6 2002/04/09 13:21:39 mouse Exp $
Remember, your login is based on your machine's hostname, not on any other number.
~/[initials] refers to the subdirectory under your homedir, named after your initials. Everything except for .dotfiles will be stored in your ~/[initials] directory.