LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-06-2010, 06:09 PM   #1
saldon
LQ Newbie
 
Registered: Jun 2008
Posts: 15

Rep: Reputation: 0
Cron jobs not running


I have a file server that is an NIS client. User home directories are auto-mounted from another server.

Users are not able to run cron jobs. The /var/log/cron logs says:

Jan 6 14:33:01 inclination crond[3217]: (username) ORPHAN (no passwd entry)

I tried adding an entry in /etc/passwd, /etc/group, and /etc/shadow but the test script I have still doesn't seem to run although cron thinks it did. The log entry for these attempts looks like:

Jan 6 15:30:01 inclination crond[4312]: (username) CMD (/home/username/test-script)

Now root does seem to be able to run cron jobs with no problem. My test script works fine from cron when runs as root.

I suspect there's an issue with how I have NIS configured but I can't find any info that helps.

BTW - The test script runs fine from the command line when logged in as myself.

Any help would be appreciated.
 
Old 01-07-2010, 10:54 AM   #2
slacker_et
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 113

Rep: Reputation: 23
I ran into that problem a couple of years ago.

At that company all user logins were actually Windows Active Directory logins that got authenticated on the Linux servers via winbind.
And I vaguely recall that we had to either bounce winbind on the Linux servers or had to re-join the Linux servers to the Windows Domain.

Sorry I can't be more specific.

--ET
 
Old 01-08-2010, 11:01 AM   #3
saldon
LQ Newbie
 
Registered: Jun 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for the idea but we're not using Windows for authentication on our Linux servers.

I did find one idea on the Internet that seems to have worked. It said that you need to be sure cron starts after ypbind and autofs. I restarted cron and everything started working. I looked in /etc/rc5.d and it appears cron was already starting after ypbind and autofs but I moved it to darn near last (S99crond) and inserted a sleep 30 in the start portion of the script just in case. I have seen problems where just making the process wait a bit has fixed a problem. Well, made the problem appear to go away, I was never able to find a root cause and I was too busy to spend large amounts of time troubleshooting an issues I could work around.

To give proper credit, here's the URL to the solution I found:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512757
 
  


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
Cron jobs not running henrybg Linux - Enterprise 10 01-28-2013 11:23 AM
Show currently running cron jobs mr.me Linux - Newbie 7 09-01-2009 09:18 AM
cron is running but jobs aren't kalahari875 Mandriva 4 03-15-2006 04:47 PM
One user's cron jobs not running dcroxton Linux - Software 5 03-06-2006 04:33 PM
cron jobs not running scarr3d Linux - Software 7 05-25-2004 05:21 PM


All times are GMT -5. The time now is 04:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration