The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 05:15 PM
Password Expired - cfmupdatenode issue philib UNIX for Dummies Questions & Answers 0 12-13-2007 11:30 AM
password expired ammu UNIX for Advanced & Expert Users 2 06-02-2007 10:15 AM
expired root password csaunders SUN Solaris 1 10-18-2005 07:48 PM
AIX Non Expired Password siddhhuu AIX 0 03-19-2005 11:12 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-29-2008
JiriVenera's Avatar
JiriVenera JiriVenera is offline
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.
  #2 (permalink)  
Old 01-29-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
cat the file : "/etc/security/user" and look at its usage, especially "pwdwarntime"
  #3 (permalink)  
Old 01-31-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,628
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0