Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 06-02-2006, 02:49 AM   #1
Registered: Mar 2006
Distribution: FC4
Posts: 184

Rep: Reputation: 31
password expiry notification through mail?

Hi Everyone,
I would like to have a password expiry notification mailed to me after every 15 days. I did look up in /etc/login.defs file and used PASS_MAX_DAYS option and put it to 15, but whenever a user's password expiry date comes he is notified with a dialog box during login. Rather than the dialog box I would like to have a mail sent on the 14th day to the administrator notifying him that passwd has to be changed. I intend to implement this script to change root passwords...Can a script written for this purpose and if so can anyone plz explain it as Im a novice....

Old 06-02-2006, 04:00 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
The key to your problem is either chage
or the 4th and 5th field in /etc/shadow

Read man chage and man 5 shadow for details.



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
Gnome Mail Notification - POP3 mail always shown as new? tsiMental Linux - Software 0 09-08-2005 11:50 AM
SAmba Password Expiry bally Linux - General 0 11-29-2004 11:42 PM
Getting password expiry for all accounts in a single command jdc2048 Linux - Security 2 05-26-2004 09:14 AM
Password expiry klmn1 Linux - Networking 0 12-29-2002 11:29 PM
E-Mail notification to users via SMS (gateway script ok, but notification script?!?) Riku2015 Linux - Networking 10 03-08-2002 11:16 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration