LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2004, 06:02 AM   #1
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Rep: Reputation: 32
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)
 
Old 11-09-2004, 06:13 AM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
cron.deny doesn't exist right?

Also, I'm wondering if you maybe have to restart cron...
 
Old 11-09-2004, 07:17 AM   #3
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Original Poster
Rep: Reputation: 32
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
 
Old 11-09-2004, 04:50 PM   #4
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
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.
 
Old 11-09-2004, 05:13 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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
 
Old 11-10-2004, 09:30 AM   #6
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Original Poster
Rep: Reputation: 32
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X apps fail when run from cron jobs ericcarlson Linux - Software 6 06-16-2017 01:02 PM
simple "echo > qbc" cron jobs doesn't run shole Linux - Newbie 3 09-23-2006 02:09 PM
tripwire modifies /root when run from cron phil.d.g Linux - Security 3 05-17-2005 11:27 PM
SuSE 9.2 cron jobs as regular user vic_semionov SUSE / openSUSE 0 12-05-2004 06:28 AM
Cron jobs, will they run when not logged in? nextekcarl Linux - General 18 03-30-2004 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration