Cron ORPHAN (no passwd entry)

  • humbletech99
  • Proficient
  • Proficient
  • User avatar
  • Posts: 300

Post 3+ Months Ago

I am using the standard vixie-cron am seeing the following my logs :
Code: [ Select ]
crond[3293]: (username) ORPHAN (no passwd entry)

Ordinarily this is a simple matter, there is no corresponding user, but I am using central authentication and the username does exist and is usable via the standard nsswitch mechanism, so all other programs work with it, pam, ssh etc..

For example, I can do crontab -e -u username and edit this very crontab, the crontab is valid, you can log in as this username etc., however the crontab never fires, it always just triggers the above line in my logs

Why is cron trying to look in /etc/passwd instead of going through nsswitch?

How can I tell cron to get a clue?

Just before finishing this post, I've realized that using the -p switch to crond allows cron to ignore the user check and just run the crontab... however I am sure that this check was there for a good reason...

Any other fixes or suggestions welcome.
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4922
  • Loc: NY

Post 3+ Months Ago

From the man page:

The cron utility searches /var/cron/tabs for crontab files which are named after accounts in /etc/passwd; crontabs found are loaded into memory. The cron utility also searches for /etc/crontab which is in a different format (see crontab(5)).

It states that it looks for files named after accounts in /etc/passwd .

I can look for a way to change it later.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 31 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.