[Nix-dev] Setting up crontab as nixos user
Lluís Batlle i Rossell
viric at viric.name
Tue Sep 2 12:10:58 CEST 2014
I use user crontabs since years in nixos. Both with vixie and fcron. I don't
remember seeing this trouble. Maybe I lag one month or so in nixos, so I'm not
running master HEAD.
On Mon, Sep 01, 2014 at 08:10:19AM +0200, Damien Cassou wrote:
> Hi,
>
> how can nixos users (not the nixos system, but simple users) specify
> cron jobs? If a user writes:
>
> $ crontab -e
>
> then he is presented with a file that has this warning:
>
> DO NOT EDIT THIS FILE - edit the master and reinstall.
>
> If the user modifies the file nonetheless, cron will never run the
> added jobs. I tried with:
>
> */1 * * * * date >> /tmp/crontest.txt
>
> and the file crontest.txt never contains any date.
>
> If the user creates its own crontab file and then registers it, it won't work:
>
> $ crontab /tmp/my.cron
> cannot chdir(/var/cron), bailing out.
> /var/cron: Permission denied
>
>
> Can you please tell me how simple users can register jobs on nixos?
>
> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
>
> "Success is the ability to go from one failure to another without
> losing enthusiasm."
> Winston Churchill
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list