Bug#1400: Cron should respect /etc/group
Package: cron
Version: 3.0pl1-18
The following simple script 'fetchmail' runs fine from 'bash' (indented for
this mail as the following paragraphs)
#!/bin/sh
(/usr/sbin/dip /usr/local/etc/dip.telnet1 && sleep 5s && \
popclient -3 -P <password-on-pop-server-file> <pop-server> )
/usr/sbin/dip -k
Unfortunately, it won't run when started by 'cron'. I receive:
Date: Wed, 20 Sep 95 15:37 EDT
From: root (Cron Daemon)
To: edd
Subject: Cron <edd@miles> ~/bin/fetchmail
/home/edd/bin/fetchmail: /usr/sbin/dip: Permission denied
/home/edd/bin/fetchmail: /usr/sbin/dip: Permission denied
'dip' and 'cron' have standard permissions:
-rwxr-xr-x 1 root root 24576 Jun 18 20:47 /usr/sbin/cron
-rwsr-x--- 1 root dip 69632 Aug 22 18:35 /usr/sbin/dip
and 'edd' is part of the 'dip' entry in /etc/group. 'cron' should check this.
The 'fetchmail' script does what it is supposed to do when I change the gid
of edd in /etc/passwd to 30, the value of the dip group.
A 'newgrp dip' in the 'fetchmail' script didn't help either.
--
Dirk.Eddelbuettel@qed.econ.queensu.ca
Reply to: