![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#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. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
cat the file : "/etc/security/user" and look at its usage, especially "pwdwarntime"
|
|
#3
|
|||
|
|||
|
issue the command "pwdadm -q <username>" as root to get an output similar to the following:
Code:
# pwdadm -q nobody
nobody:
lastupdate = 1192452222
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 |
|||
| Google The UNIX and Linux Forums |