SCO UNIX 3.2.2 Can't set login uid from cron

Conor P. Cahill cpcahil at virtech.uucp
Thu Apr 4 03:01:06 AEST 1991


bernd at pfm.rmt.sub.org (Bernd Hennig) writes:
>I have a great problem with the SCO UNIX 3.2.2 and cron. The following
>is a job in /usr/spool/cron/crontabs/news:

>15,30,40,00 * * * * /bin/su news -c "/usr/lib/news/bin/input/newsrun"

You don't need the su here.  Any jobs in the "news" crontab will be run
with user id set to news.

>And the result is, that cron mails me:
>Cron: can't set login UID

This is because the su command wants a password (since it is not being invoked
by root, but by news) and can't get one since input is mapped to /dev/null and
it doesn't have a controll tty.
-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.sysv386 mailing list