From 712cd7b55ff7d3fdc10a727dba5978a7fc91ba64 Mon Sep 17 00:00:00 2001 From: James Morrison Date: Wed, 13 Aug 2003 17:12:01 +0000 Subject: [PATCH] Add basic sysadmin stuff --- docs/execmanual/book.xml | 2 + docs/execmanual/sysadmin.xml | 118 +++++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100755 docs/execmanual/sysadmin.xml diff --git a/docs/execmanual/book.xml b/docs/execmanual/book.xml index dfde0e7..273a3bf 100755 --- a/docs/execmanual/book.xml +++ b/docs/execmanual/book.xml @@ -4,10 +4,12 @@ [ + ]> Computer Science Club Exec Manual &prez; &veep; +&sysadmin; diff --git a/docs/execmanual/sysadmin.xml b/docs/execmanual/sysadmin.xml new file mode 100755 index 0000000..4b56129 --- /dev/null +++ b/docs/execmanual/sysadmin.xml @@ -0,0 +1,118 @@ + + + System Administrator + + This chapter covers various useful notes for the CSC sysadmin, ranging + from how to get appointed to expiring users. + + + What to do + + The SysAdmin position was added to the exec when the CSC acquired a + computer system of their own. The SysAdmins duties are: + + + + to operate any and all equipment in the possession of the Club; + + + + to maintain and upgrade the software on equipment that is + operated by the Club; + + + + to facilitate the use of equipment that is operated by the Club. + + + + It has become quite regular for the CSC to get new equipment each + term. The sysadmin is responsible for ensuring this gear gets installed + and works as intended. + + + + Useful contacts + + + + You can try getting access to the machine room from MFCF/CSCF. + You probably want to talk to Dave Gawley, dlgawley@cs.uwaterloo.ca. + He's been really friendly to the CSC in the past and is a cool guy + in general. + + + + + + Expiring Users + + This procedure is for users that were expired at the end of spring + 2003. + + + + login as root on peri (you probably can't do this, but might + have access to someone who can..) + + + + Unexpire the account in the ldap database + + peri# echo username + |/root/dead-accounts/unexpire.pl If this worked, it should + spit back the username. + + + + Extract home directory onto peri + + extract home directory onto peri mount "Expired /u" on + sugar (or wherever) copy /$mntpoint/username.tar to somewhere + accessible to root@peri + + Note: the home directories are not compressed on the CD, + remember this when 'cp' is telling you 'username.tgz: no + such file or directory'. tar (below) doesn't need 'z' + either. peri# tar xf /path/to/username.tar + -C /u + + + + Restore mail onto peri + + peri$ grep username + /root/dead-accounts/unreadable-accounts if the username is + there, the mbox is on "Expired mail 2" otherwise, the mbox is + on "Expired mail" mount appropriate CD cd to a temporary + directory (*not* /var/mail) extract mbox from archive -- on the + "Expired mail", this will take a while -- just hit ^C after + you see the username printed and you're happy tar has moved on to + other files. + + (I say 'sugar', but really any machine with a CD + drive...) sugar$ tar jxvf + /$mntpoint/mail_tar.bz2 username (hmm.. I don't + remember what the tarball is called on Expired2, maybe the same thing, + maybe different, but I'm pretty sure this is the filename for + Expired1. Besides, there's only one file on the CD, so just + tab-complete the damn thing :) (probably scp username root@peri: or + something here) restore mail, appending any mail received since backup + was made, and preserving permissions on the file. (Note: this + doesn't take into account locks -- i.e., stuff might get screwed + if the account receives mail while one of the below cats is running. A + message received between the cats simply gets lost.) + + The following commands should also work from another machine if + the account was on "Expired mail" (i.e., was not in + ``unreadable-accounts''). But doing it on peri will always + + peri#cat /var/mail/username + >>username + + peri#cat username + >/var/mail/username + + + + \ No newline at end of file