[3290] in testers
Re: [daemon@ATHENA.MIT.EDU : Returned mail: User unknown]
daemon@ATHENA.MIT.EDU (Mike Barker)
Mon Jun 23 16:01:50 1997
To: Matt Braun <mhbraun@MIT.EDU>
Cc: testers@MIT.EDU, postmaster@MIT.EDU
In-Reply-To: Your message of "Sun, 22 Jun 1997 14:30:19 EDT."
<199706221830.OAA07832@forever.MIT.EDU>
Date: Mon, 23 Jun 1997 16:01:39 EDT
From: Mike Barker <mbarker@MIT.EDU>
1. the cron job that is causing the mail appears to exist in 8.0 and
8.1. I've attached a copy.
2. m37-312-33 and m37-312-36 did not have either /var/lp or
/var/lp/logs, so the cd /var/lp/logs in the cron job failed, causing
the mail that you've seen. a neighboring system (m37-312-34) did have
the directories, both empty (as you would expect, since we don't use
lp)
33, 34, and 36 are all three early test machines. I didn't root
around enough to find out why some have the lp/logs directories and
some don't.
3. I did a quick workaround (su and make the directories). However,
I assume that the directories weren't there because we cleaned them up
somewhere in the recent upgrade. if so, we also need to remove
/var/spool/cron/crontabs/lp (which isn't needed, since it just rolls
over the lp logs, if we had lp logs to roll over)
athena% su
Password:
athena% mkdir lp
athena% mkdir lp/logs
athena% chown lp lp
athena% chgrp lp lp
athena% chown lp lp/logs
athena% chgrp lp lp/logs
athena% ls -ld lp
drwx------ 3 lp lp 512 Jun 23 15:24 lp/
athena% ls -ld lp/logs
drwx------ 2 lp lp 512 Jun 23 15:24 lp/logs/
I hope I've got the owner, group, and access correct.
this is the cron job that is causing the mail. I found it on all three
8.1 early machines and an 8.0 machine.
#ident "@(#)lp 1.7 92/08/17 SMI" /* SVr4.0 1.2 */
#
# At 03:13am:
# Move each days 'requests' to 'requests.1'.
# If there was an 'requests.1' move it to 'requests.2'.
# If there was an 'requests.2' then it is lost.
#
13 3 * * * cd /var/lp/logs; if [ -f requests ]; then if [ -f requests.1 ]; then /bin/mv requests.1 requests.2; fi; /usr/bin/cp requests requests.1; >requests; fi
#
# At 03:15am on Sundays:
# Move a weeks worth of 'lpsched' log messages to 'lpsched.1'.
# If there was an 'lpsched.1' move it to 'lpsched.2'.
# If there was an 'lpsched.2' then it is lost.
#
15 3 * * 0 cd /var/lp/logs; if [ -f lpsched ]; then if [ -f lpsched.1 ]; then /bin/mv lpsched.1 lpsched.2; fi; /usr/bin/cp lpsched lpsched.1; >lpsched; fi
#
# At 03:17am on Sundays:
# Move a weeks worth of 'lpNet' log messages to 'lpNet.1'.
# If there was an 'lpNet.1' move it to 'lpNet.2'.
# If there was an 'lpNet.2' then it is lost.
#
17 3 * * 0 cd /var/lp/logs; if [ -f lpNet ]; then if [ -f lpNet.1 ]; then /bin/mv lpNet.1 lpNet.2; fi; /usr/bin/cp lpNet lpNet.1; >lpNet; fi