[plug] Crontab Permissions
Russell Steicke
r.steicke at bom.gov.au
Fri Aug 19 09:47:03 WST 2005
On Fri, Aug 19, 2005 at 09:30:44AM +0800, Timothy White wrote:
...
> p.s. for reference i ran the same commands on linjeni. The only
> difference I can see is which group the created crontab is in. crontab
> on this box, root on the other. But that doesn't explain why I can't
> create a crontab at all.
> tim at linjeni:~$ ls -l /var/spool/cron/
> total 12
> drwxrwx--T 2 daemon daemon 4096 2005-04-20 03:54 atjobs
> drwxrwx--T 2 daemon daemon 4096 2005-02-18 18:37 atspool
> drwx-wx--T 2 root crontab 4096 2005-07-18 16:25 crontabs
> tim at linjeni:~$ ls -l /var/spool/cron/crontabs/
> ls: /var/spool/cron/crontabs/: Permission denied
> tim at linjeni:~$ sudo ls -l /var/spool/cron/crontabs/
> Password:
> total 4
> -rw------- 1 tim crontab 307 2005-07-18 16:25 tim
How about /usr/bin/crontab?
$ ls -l /usr/bin/crontab
-rwxr-sr-x 1 root crontab 26872 2004-07-29 04:44 /usr/bin/crontab*
$
Ensure yours is sgid crontab.
--
Russell Steicke
-- Fortune says:
No discipline is ever requisite to force attendance upon lectures which are
really worth the attending.
-- Adam Smith, "The Wealth of Nations"
More information about the plug
mailing list