LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't run cron jobs as user, only root (https://www.linuxquestions.org/questions/linux-newbie-8/cant-run-cron-jobs-as-user-only-root-252758/)

Kropotkin 11-09-2004 06:02 AM

Can't run cron jobs as user, only root
 
Hi all,

I created a /etc/cron.allow file with my username in it. However, when I type:

$ crontab mycronfile.txt

I get the errror message

cron/tmp.XXXXz1K4QF: Permission denied

What else do I need to do to make it possible to run cron jobs as a normal user, not just root? (I'm running Fedora Core 3 test 3, hopefully Core 3 tomorrow)

serz 11-09-2004 06:13 AM

cron.deny doesn't exist right?

Also, I'm wondering if you maybe have to restart cron...

Kropotkin 11-09-2004 07:17 AM

Quote:

Originally posted by serz
Also, I'm wondering if you maybe have to restart cron...
Ahhh, good suggestion... I stopped and restarted crond... but it didn't help :( :(

serz 11-09-2004 04:50 PM

This is the only thing I could find on Google..

I think you just have to do crontab -e to edit your user's crontab file.

hw-tph 11-09-2004 05:13 PM

Depending on what cron you use and how it's set up you may also need to be part of the "cron" group.

Håkan

Kropotkin 11-10-2004 09:30 AM

fixed
 
After installing Fedora Core 3, I can now create cron jobs, without having created a cron.allow file. Don't know how or why -- I guess it was a temporary glitch.


All times are GMT -5. The time now is 04:44 AM.