AT&T SysV Problem
Dave Thompson
dlt at csuna.UUCP
Thu Apr 7 04:42:07 AEST 1988
H E L P !!!
We've recently upgraded from an AT&T 3b5 to a 3b15. Ever since I
changed the system default umask in /etc/profile to 077 the sa1
shell script no longer writes to its data file in /usr/adm/sa. I
changed the umask to 007 in sa1 and sa2 and changed the protection
on the data files so that sys can write to them, but still it
doesn't work. Cron seems to be executing the job, but I notice
that "rc=1" is printed at the end of the line indicating termina-
tion of the task. Is this supposed to mean something? It doesn't
seem to be documented anywhere. (There's rather a lot that *isn't*
documented in AT&Ts manuals.)
>From /usr/lib/cron/log:
> CMD: /usr/lib/sa/sa1 1200 3 &
> sys 684 c Wed Apr 6 10:00:00 1988
> CMD: /usr/lib/acct/ckpacct
> adm 685 c Wed Apr 6 10:00:00 1988
> CMD: /usr/local/dateit >/dev/console
> root 686 c Wed Apr 6 10:00:00 1988
> CMD: /usr/lib/uucp/uu.poll > /dev/null
> uucp 687 c Wed Apr 6 10:00:01 1988
< sys 684 c Wed Apr 6 10:00:01 1988 rc=1
ls -l /usr/spool/cron/crontabs:
total 6
-rw-r--r-- 1 root sys 210 Aug 20 1985 adm
-rw-rw-r-- 1 news news 598 Jan 21 08:13 news
-rw-r--r-- 1 root sys 475 Sep 29 1987 root
-rw-r--r-- 1 sys sys 117 Apr 5 13:01 sys
-rw-rw---- 1 uucp uucp 402 Jan 11 16:28 uucp
cat /usr/spool/cron/crontabs/sys
# @(#)sys 1.1
0 8-17 * * 1-5 /usr/lib/sa/sa1 1200 3 &
0 * * * 0,6 /usr/lib/sa/sa1 &
0 18-7 * * 1-5 /usr/lib/sa/sa1 &
ls -l /usr/lib/sa:
total 53
-rw-rw-r-- 1 sys sys 1060 Apr 1 12:40 sa01
-rw-rw-r-- 1 sys sys 708 Apr 4 13:18 sa04
-rw-rw-r-- 1 sys sys 1060 Apr 5 13:00 sa05
-rw-rw-r-- 1 sys sys 708 Apr 6 03:43 sa06
-rw-rw-r-- 1 adm adm 561 Apr 1 18:05 sar01
-rw-rw-r-- 1 adm adm 0 Apr 4 18:05 sar04
-rw-rw-r-- 1 adm adm 0 Apr 5 18:05 sar05
ls -l /usr/adm/sa:
total 24
-r-xr-xr-x 1 bin bin 426 Apr 6 09:52 sa1
-r-xr-xr-x 1 bin bin 471 Apr 6 09:52 sa2
-rwxr-sr-x 1 root sys 10564 Jan 5 1986 sadc
I note that it I execute sa1 logged in as root everything works ok.
It's only when cron tries to do it that there's a problem. Does
anyone out there have an idea why this isn't working?????
Thanks,
(Oh, please respond by email as I don't normally read this
newsgroup.)
--
Dave Thompson uucp: {ihnp4|hplabs|psivax}!csun!csuna!dlt
CSUN Computer Center phone: (818) 885-2790
18111 Nordhoff Street, Northridge, CA 91330
More information about the Comp.unix.questions
mailing list