LinuxQuestions.org
Visit Jeremy's Blog.
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-04-2010, 01:04 PM   #1
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Rep: Reputation: 23
cron reporting user account expired, chage -l shows it never expires?


I'm feeling somewhat stumped.

I've got a server running CentOS 4.8 (binary compatible RHEL 4.8 clone) that's decided all the accounts are expired.

I've tried this on multiple accounts so far, to no avail.

chage -l <username>

Shows that the account never expires. In this case the problem was first noticed with the root account, then I tested it with my user account, and got the same answer, the account never expires.

For the test I added a crontab to my account, and to roots, ever minute run "whoami"

In the log I get (once for each crontab):
crond[]: User account has expired

Recycling crond doesn't help, and I can't recycle the box itself as I've got users on it (pounding away at the poor box at that).

Several searches so far have only turned up that locked root accounts (ala debian/ubuntu) can cause this, and check or correct the age of the account using chage.

Comparing entries in /etc/shadow to other boxes where everything is kosher doesn't seem to help either: the important bits are identical.

Working box:
kschmitt:$1$QykLetnt$ynSZ.7uKQSRnS3lsYe01w1:14613:0:99999:7:::
Screwie box:
kschmitt:$1$EI4KIHUu$b.td/Xoq6qIoPSHKLE.G3.:14613:0:99999:7:::


I can't think of anything else to help figure this one out.

Thanks all
--Kyle
 
Old 01-05-2010, 01:15 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Have you looked into pam related issue.
What is in /etc/pam.d/system-auth and /etc/pam.d/login.

You can also look into /var/log/secure for pam related error.

Thanks
 
Old 01-05-2010, 09:33 AM   #3
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by vishesh View Post
Have you looked into pam related issue.
What is in /etc/pam.d/system-auth and /etc/pam.d/login.

You can also look into /var/log/secure for pam related error.

Thanks
/var/log/secure is clean, nothing to indicate a pam related issue.
I verified that system-auth and login are sock for the distro.

Crazy hu?
 
Old 01-05-2010, 11:37 AM   #4
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Original Poster
Rep: Reputation: 23
And a little bit after that, your post made me stop and think...

I checked the /etc/pam.d/crond file and found it... empty.

I have no idea why it's empty, but from my syslog server it looks like it started after a hard crash. The scary part is that when it came up after that the logs say it fscked clean.

Then again it _is_ an old P4 server. It could really be dying silently (smartd refuses to run). The users complained the VM we gave them last time was too slow, so someone thought it would be cute to promise them their own dedicated hardware....
 
Old 01-05-2010, 01:51 PM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Is the problem present only for cronjobs? (It seems like you can log in to a virtual terminal if you're able to run shell commands.)

And is it solved now that you've recreated /etc/pam.d/crond?
 
Old 01-06-2010, 08:18 AM   #6
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Original Poster
Rep: Reputation: 23
Yea, all solved after recreating /etc/pam.d/crond. Mind you, when I have time I'm going to try and re-create the issue on a known good box, so I can verify that's the root cause. Still, it seems to be 100% working now.

I'm getting that suspicious feeling that either the drives, the raid card, or the whole machine may be destined for the trash soon. It's crashed a few times in the past 6 months, and now this. If it weren't for our reboot policy, most of my linux servers would have uptimes in excess of three or four hundred days. And then that would be because of updates, physical moves, or hardware upgrades, not a crash!

Last edited by kschmitt; 01-06-2010 at 08:20 AM. Reason: clarification
 
  


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
How to create user account with a 'newusers' run from a cron job? tifoso Linux - General 3 11-05-2009 06:19 AM
Expired user account? lt_wentoncha SUSE / openSUSE 2 04-26-2007 11:34 PM
user account expired ??? rahimzai Red Hat 3 10-10-2005 05:03 AM
Re-enable an expired account xcoach Linux - Newbie 0 04-16-2004 10:39 AM
When account expires user still receives email ganninu Linux - Newbie 3 08-01-2003 05:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:26 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration