1. Beware, beware when munging around /var/mail...
A short war story which happened to yours truly this past weekend... Let's
say this was a learning experience ;)
Our campus mail server had been running out of space for the incoming mail
for a while now, so I took advantage of the Mexican Independence holiday
to shut it down and rearrange things.
There I go, merrily defining a new partition, dumping all inboxes onto it
and mounting it in it's place. No errors so far and I was happy as a clam.
To be on the safe side, I decided to get a backup of the whole machine
before letting the users loose on it.
When the machine reboots following the backup, and goes back to runlevel
3, all mail-hell broke loose. Unbeknownst to me (yeah, I know, I SHOULD
have double-checked), the /var/mail mount point had switched group, from
mail to sys, but retaining 1775 permissions. As a result, sendmail was
correctly placing the incoming letters on temp files in /tmp, but mail was
unable to deliver them since it had no write permissions.
By the time I caught it, there were over 1,700 temp mailfiles and very
mystified users who were not receiving mail. A quick chgrp remedied the
operation, but I was still left with MUCHOS undelivered mailfiles. I am
still wondering why the change of group.
Also, after the experience, I checked out three Sol 2.4 hosts I had
recently installed and was surprised to find that /var/mail had 1777
permissions !! It did correctly belong to mail/mail, though. Since I had
just reinstalled one of them from CD, I can only assume this was the
default. Fortunately, there was no security leak here, since these
machines do not receive mail (MX points elsewhere) but this really looks
like something to check into.
Also, in order to clean up /tmp and deliver the bunch of undelivereds, I
whipped up a quick Perl script. It is definitely not a work of art and
Larry Wall would probably find it hilariously funny, but I can either post
it here or send it to anyone in a similar predicament.
Just for the record, all this happened on a SS20, with Sol 2.3, Perl
5.001m and sendmail v8.6.12.
--
Campus Queretaro
2. lpr daemon in OSF 4.0D
3. *BEWARE* The Hylandertroll aka john gagon of Houston Texas is trolling again *BEWARE*, as evidenced here he has stalked me and my family BEware of Criminal John Gagon
4. Mjordomo error 5
5. lilo lockup with one ide disk on intel 815 motherboard
6. Rebuilding Apache and PHP - ARRRGH!
7. 2.4.19: no DMA for IDE with Intel i845e
8. dlopen and library dependencies
9. FORMATMATING IDE DISKS ON INTEL SOLARIS 2.7
10. Any IDE CDRW supported by Solaris 8 Intel ?
11. Linux 2.0.30 + Intel 440LX Chipst = IDE problem
12. ide problem w/ quantum lct20 & intel 815 mb
13. C++ IDEs for intel versions of UNIX