[plug] Crontab Permissions

Timothy White weirdit at gmail.com
Fri Aug 19 09:30:44 WST 2005


On 8/19/05, Martin <marty at supine.com> wrote:
> $quoted_author = "Timothy White" ;
> >
> > On my server (also a 'default' ubuntu install) the only user that can
> > change crontabs is root.
> > $ crontab -e
> > crontabs/tim: Permission denied
> >
> > Nether had cron.allow or cron.deny. The perms on
> > /var/spool/cron/crontabs was the same.
> 
> can you show us the output of 'ls -l /var/spool/cron/crontabs' ?tim at camiroi:~$ ls -l /var/spool/cron/crontabs
ls: /var/spool/cron/crontabs: Permission denied
tim at camiroi:~$ sudo ls -l /var/spool/cron/crontabs
Password:
total 4
-rw-------  1 public root 249 2005-08-18 22:44 public

This crontab I installed using sudo crontab -u public -e cause I was
desperate for the crontab to be running asap

tim at camiroi:~$ ls -l /var/spool/cron/
total 12
drwxrwx--T  2 daemon daemon  4096 2005-04-18 23:17 atjobs
drwxrwx--T  2 daemon daemon  4096 2005-02-18 18:37 atspool
drwx-wx--T  2 root   crontab 4096 2005-08-18 22:44 crontabs

As for groups. I'm in all the same ones on camiroi (problem box) as
linjeni (my box). I'm in extra ones on camiroi for the domain. So src
backup ntpower ntadmins.

Tim
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



More information about the plug mailing list