Find user password expiry date


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Find user password expiry date
# 1  
Old 04-02-2007
Find user password expiry date

Does anyone know a simple way to find out the expiry date of my UNIX user password?

I do not have root access to the box.

Surely there is a way to so this...
# 2  
Old 04-02-2007
From man pages :
Quote:
-S This will output a short information about the status of the password for a given account. Available to root
user only.
Quote:
-w This will set the number of days in advance the user will begin receiving warnings that her password will
expire, if the user’s account supports password lifetimes. Available to root only.

-i This will set the number of days which will pass before an expired password for this account will be taken to
mean that the account is inactive and should be disabled, if the user’s account supports password lifetimes.
Available to root only.
# 3  
Old 04-02-2007
.... Thanks for replying. As previosly stated, I do not have root access. Thus, none of those switches are of any use to me.

Any other ideas or workarounds?

A bit more background on my situation.

I am accessing a box, which on logon is not setup to notify me when my password will expire.

On the weekend, my password expired, and as such my weekend cron jobs failed. (I can only assume that cron will not execute jobs as my user when my password is expired?)

I am hoping to write a simple script to notify me to change my password when it is about to expire.

Sort of requesting the root user to change something, is there any way to achieve this?
# 4  
Old 04-17-2009
I have encountered the same problem that I do not have root access.

Appreciate if someone may shed light on getting password expiry date without root access problem.

Many thanks! Smilie


- Kevin
# 5  
Old 04-17-2009
Please state your Operating System.

As you deduced, cron will not execute commands in an expired account.

Usually you can only get basic information from a password status enquiry like when you last changed your password and expiry rules (see "man passwd"). From this it is possible to calculate the expiry date.

It's probably simpler to use an "at" job to create a reminder in the future just after changing your password.
If your local rules allow (some don't) you could change you password more frequently than required.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Password expiry send to individual user

Hi Folks, I am having a script which will send out the password expiry email notification with just the username to a common group id, but I am looking for a change in like: the password expiry email notification should send to an individual user account with their email id including the... (1 Reply)
Discussion started by: gsiva
1 Replies

2. Solaris

Command to find out password expiry

Hi, I would like to know is there command which will tell me when password will be expire and when last password was changed ? like on linux chage -l <username? (2 Replies)
Discussion started by: manoj.solaris
2 Replies

3. Shell Programming and Scripting

Calculating expiry date using date,sed,grep

Hi, I would greatly appreciate it if someone can help me with my problem. I have a crawler which collects spam URLs everyday & this data needs to be published in a blacklist. Here's the catch: The "Time To Live" (TTL) for each URL is 3 months (or whatever for that matter). If i see the... (5 Replies)
Discussion started by: r4v3n
5 Replies

4. Shell Programming and Scripting

Password expiry date check for hp servers

Hi All, Can anybody help me, to find the command to check for the password expiry date for the hp servers. Thanks, Deepak (3 Replies)
Discussion started by: dswain
3 Replies

5. SuSE

Disable the password expiry date

Hi, We are going to create the new user, using that user we are automate the work, but every 90 days password get expired how can i create or avoid the expiry the password. (1 Reply)
Discussion started by: kingganesh04
1 Replies

6. 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

7. 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

8. Solaris

Emailing about password expiry for a user

How to create a mechanism that e-mails user/admin before password expiry. Assume 7 days in advance. Thanks in advance for your great help. Regards, Awadhesh (4 Replies)
Discussion started by: Awadhesh
4 Replies

9. UNIX for Advanced & Expert Users

doubt regarding user password expiry in unix

I want to know the command through which we can know the expiry date of the password. I tried chage but it is not working on my system please provide necessary information I am not using root I need info on user level (2 Replies)
Discussion started by: irshad
2 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