Notification of password expiry.


 
Thread Tools Search this Thread
Operating Systems Solaris Notification of password expiry.
# 1  
Old 04-16-2009
Question Notification of password expiry.

Hi,

Is there any way of sending an email to a number of users indicating that the passwords of user accounts will expire?

Currently we have a test server with a number of oracle test accounts on it. Each of these accounts correspond to an instance of Oracle on the server. These accounts would have cron entries for running scripts etc. When the password expires the cron entries do not run anymore.

I need to be able to notify the DBAs of impending password expiration on these accounts by sending an automated email to them so they can change them. Is there any way to do that? Thank you.
# 2  
Old 04-16-2009
It can be done but it's not something that's part of Solaris.

Basically you'd have to check /etc/shadow for the password change date and the number of days for password changes. Get today's date, subtract seven days from it (for example), add the password change number of days to the password change date. If that number is greater than today - 7 days, send them an e-mail.

We added the users e-mail address to the GECOS field (:name,e-mailSmilie and we just send them a message each day. If it's expired, we send them a "your account has expired, your scripts aren't running, please contact the help desk" message.

Carl
# 3  
Old 04-17-2009
Hammer & Screwdriver

Thanks Carl. I will try that.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Root password expiry script

Hi Guys In red hat linux server is there a way to alert via email when the root password is about to expire ? As per security policy in our environment root password will expire in 90 days. Example : It would be better if we receive a email on 7th november stating that the root password... (1 Reply)
Discussion started by: newtoaixos
1 Replies

2. Shell Programming and Scripting

Password expiry report

Hi All, I want to write a script that will send the alert when linux server password expiry for user 'x' is less than 12 days. I have written the below script but this is not working for expiry date 04 july script;- P_EXPIRY_DATE=`chage -l msdp| grep 'Password expires' | awk ' {... (2 Replies)
Discussion started by: abhigrkist
2 Replies

3. Shell Programming and Scripting

passwd expiry notification

Hi, I'm trying to set password expiry notification. But unable to do so. >I do not have permission for "passwd -s" on Sun OS(SunOS 5.9 Generic_122300-60 sun4u sparc SUNW,Sun-Fire-480R). >Also tried "chage -l <username>" but it is not configured. I'm just an appln user in that system. Could... (2 Replies)
Discussion started by: sam_bd
2 Replies

4. Solaris

disable password expiry

Hi How do i disable password expiration on ldap? It runs on Solaris 10 machine. Thanks in advance. (3 Replies)
Discussion started by: hrist
3 Replies

5. Solaris

Password Expiry Promtps Not Visable

Hi all. On our systems we use the password expiry through the shadow file. This was recently implemented and the first round of expiry has just arrived. The problem that i have is that when users are attempting to log on to a box (directory through putty) there are no prompts displayed if... (13 Replies)
Discussion started by: boneyard
13 Replies

6. Shell Programming and Scripting

password expiry notification

Hi, Could someone please let me know how to write script for passwd expiry notification on salaries boxes. Regards Dnyan (1 Reply)
Discussion started by: dnyan
1 Replies

7. Solaris

SSH Password-less login fails on password expiry.

Hi Gurus I have a few Sol 5.9 servers and i have enabled password less authentication between them for my user ID. Often i have found that when my password has expired,the login fails. Resetting my password reenables the keys. Do i need to do something to avoid this scenario or is this... (2 Replies)
Discussion started by: Renjesh
2 Replies

8. Solaris

Notification of password expiry.

Hi, Is there any way of sending an email to a number of users indicating that the passwords of user accounts will expire? Currently we have a test server with a number of oracle test accounts on it. Each of these accounts correspond to an instance of Oracle on the server. These... (2 Replies)
Discussion started by: sparcman
2 Replies

9. AIX

How to check password expiry in AIX?

Hi All, Could anyone please help me with the command or script for checking the password expiry for a particular userid on AIX. Regards, Sanjay...:) (5 Replies)
Discussion started by: SanjayPasum
5 Replies

10. UNIX for Advanced & Expert Users

password expiry

Hi, under SUN Unix, in which file the expiry date of a user password is indicated ? Many thanks. (2 Replies)
Discussion started by: big123456
2 Replies
Login or Register to Ask a Question