Cron Authentication Problem [RESOLVED]

Threads in this read-only forum cover topics discussed elsewhere in other forums.
Post Reply
fdamstra
n00b
n00b
Posts: 39
Joined: Wed Feb 11, 2004 1:44 pm
Location: Grand Rapids, MI
Contact:

Cron Authentication Problem [RESOLVED]

Post by fdamstra »

After I 'emerge -u world' this morning, Vixie-Cron won't run jobs as other users. That is, in /etc/crontab I have a line:

Code: Select all

*/5 * * * * apache  php /var/www/localhost/htdocs/cacti/poller.php
Which should run poller as the 'apache' user.

In /var/log/messages, I see the line:
Jul 19 09:20:01 src@monitor02 cron[19225]: Authentication service cannot retrieve authentication info.
This seems suspiciously similar to the "can't su root" problem, except that I can su to root. Today's updates included packages 'pam', 'pam-login', and 'shadow'; and that's where my suspicions lie, but I can't figure out the problem.

I've unmerged and remerged vixie-cron, and am going to reemerge the three packages above, though I don't expect this to help.

Any other ideas?
fdamstra
n00b
n00b
Posts: 39
Joined: Wed Feb 11, 2004 1:44 pm
Location: Grand Rapids, MI
Contact:

Post by fdamstra »

Thanks to a related thread regarding postfix, I found the solution. The 'shadow' package apparently stomped /etc/shadow.

Running 'pwconv' rebuilt /etc/shadow with all the daemon users, and it appears to be working now.
User avatar
Deathwing00
Bodhisattva
Bodhisattva
Posts: 4087
Joined: Fri Jun 13, 2003 9:07 pm
Location: Berlin, Germany
Contact:

Post by Deathwing00 »

Can you post the exact thread please? I guess others might also want to have a look at it. :)
mirmillo
n00b
n00b
Posts: 1
Joined: Mon Jan 10, 2005 8:58 pm

Me too

Post by mirmillo »

This fixed it for me too. Although I don't recall updating Shadow recently.

Thanks!
fdamstra
n00b
n00b
Posts: 39
Joined: Wed Feb 11, 2004 1:44 pm
Location: Grand Rapids, MI
Contact:

Post by fdamstra »

Deathwing00 wrote:Can you post the exact thread please? I guess others might also want to have a look at it. :)
I believe this is the thread. postgres, not postfix, my bad.
User avatar
Deathwing00
Bodhisattva
Bodhisattva
Posts: 4087
Joined: Fri Jun 13, 2003 9:07 pm
Location: Berlin, Germany
Contact:

Post by Deathwing00 »

fdamstra wrote:
Deathwing00 wrote:Can you post the exact thread please? I guess others might also want to have a look at it. :)
I believe this is the thread. postgres, not postfix, my bad.
Moved to Duplicate Threads.
Post Reply