The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Expired password doesn't prompt for change mark24p SUN Solaris 2 04-28-2008 01:15 PM
Password Expired - cfmupdatenode issue philib UNIX for Dummies Questions & Answers 0 12-13-2007 08:30 AM
password expired ammu UNIX for Advanced & Expert Users 2 06-02-2007 06:15 AM
expired root password csaunders SUN Solaris 1 10-18-2005 03:48 PM
AIX Non Expired Password siddhhuu AIX 0 03-19-2005 08:12 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-29-2008
JiriVenera's Avatar
Registered User
 

Join Date: Jan 2008
Posts: 1
notification mail when password expired

Hallo, can anybody help me with my issue? I´d like to know if it is possible to send me a mail (to @mail.com for example) when some account password will expired? eg. few days ago of this expiration. We don´t use this account every day, it is used for DB2 and DB2 has problem every 90´s day because his password expired.

Thank You.
Reply With Quote
Forum Sponsor
  #2  
Old 01-29-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,200
cat the file : "/etc/security/user" and look at its usage, especially "pwdwarntime"
Reply With Quote
  #3  
Old 01-31-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,262
issue the command "pwdadm -q <username>" as root to get an output similar to the following:

Code:
# pwdadm -q nobody
nobody: 
        lastupdate = 1192452222
The lastupdate value shows the time the password was last changed and is in "seconds passed since Jan 1st 1970"-forma. It is extracted from the file /etc/security/passwd. You can:

either set the value there directly (add 86400 every day or something such);

change the maxage attribute of the user account to "-1" to never let the password expire;

Both these methods are only available if you have root access to the system. If you only have user rights you have no possibility to find out how old your password already is. Do the following:

create an alias for the "passwd" command (put that into your ~/.kshrc) , which does the following: first call a script and have it write a date information to a file, then call the normal /usr/bin/passwd. This way you can maintain your own age information about the last password change. The information could be used to issue a mail (via a cron job) whenever the expiration date is near.

I hope this helps.

bakunin
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0