LinuxQuestions.org
Review your favorite Linux distribution.
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 08-06-2012, 08:23 AM   #1
diamond_D
Member
 
Registered: Jul 2005
Posts: 51

Rep: Reputation: 0
Password expiry notification not working


OS version - XUBUNTU 11.10

I created a user account and am trying to setup password aging and expiry notification. It just doesn't appear to be working. The account is set to expire today (Aug 6th) but not only is it not expired, I do not see any warning message either when I login under that user.

From what I gather the "chage" and "passwd -x" commands do the same thing. I've tried both. Here is the status of the account.

What am I doing wrong?

Code:
defguss@ubuntu01-vm:~$ date
Mon Aug  6 08:51:37 EDT 2012
defguss@ubuntu01-vm:~$ sudo passwd -S rhenshaw
rhenshaw P 08/03/2012 0 3 1 -1
defguss@ubuntu01-vm:~$ sudo chage -l rhenshaw
Last password change					: Aug 03, 2012
Password expires					: Aug 06, 2012
Password inactive					: never
Account expires						: never
Minimum number of days between password change		: 0
Maximum number of days between password change		: 3
Number of days of warning before password expires	: 1

Last edited by diamond_D; 08-06-2012 at 12:16 PM.
 
Old 08-06-2012, 12:59 PM   #2
diamond_D
Member
 
Registered: Jul 2005
Posts: 51

Original Poster
Rep: Reputation: 0
I tried "passwd -e" on the account and was able to set it as expired. Now I'm more confused.

Is there a configuration file that overrides setting password aging on a specific account? Like somewhere in /etc/login.defs perhaps?
 
Old 08-06-2012, 07:47 PM   #3
diamond_D
Member
 
Registered: Jul 2005
Posts: 51

Original Poster
Rep: Reputation: 0
OK all of a sudden if I do a su to that account, the warning is displayed. I could have sworn that I tested this earlier and it didn't work.

Should a warning appear if I try to login a console session? Currently I do not get any sort of warning.
 
  


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
Automatic Password Expiry Notification Tool for LDAP and AD Doknik Linux - Software 10 06-17-2011 06:04 AM
Password expiry notification via mail athreyavc Linux - Security 8 09-17-2010 04:40 AM
password expiry notification through mail? dsids Linux - Security 1 06-02-2006 03:00 PM
password expiry notification through mail? dsids Linux - Newbie 2 06-02-2006 02:48 PM

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

All times are GMT -5. The time now is 05:21 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