find out expiration date


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers find out expiration date
# 8  
Old 11-26-2008
So check the man page for passwd and maybe that -S switch or something similar that shows your users settings from the /etc/shadow.
# 9  
Old 11-26-2008
I already tried that. Now I read the man again, to be on the safe side, but no answers there, as far as I can understand.
# 10  
Old 11-26-2008
I got something similar to your Linux running, I guess:

Code:
root@isau02:/data/tmp/testfeld> uname -a
Linux isau02 2.6.18-4-686 #1 SMP Wed May 9 23:03:12 UTC 2007 i686 GNU/Linux
root@isau02:/data/tmp/testfeld> passwd -S
root P 05/30/2007 0 99999 7 -1
root@isau02:/data/tmp/testfeld> cat /etc/issue
Debian GNU/Linux 4.0 \n \l

For reading your man page I can't help you - maybe someone else has an idea.
# 11  
Old 02-17-2009
i just had to search for this today. Thankfully stumbled onto a command that i think will do what you're needing. On RedHat AS r4, using a bash shell, the command 'chage -l <username>' displays full password expiration information for the username entered. Only command i could find that displays this info.
# 12  
Old 02-17-2009
Many thanks, I'll try that.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Find the count of files by last created date based on the given date range

My unix version is IBM AIX Version 6.1 I tried google my requirement and found the below answer, find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20" But newer command is not working in AIX version 6.1 unix I have given my requirement below: Input: atr files: ... (1 Reply)
Discussion started by: yuvaa27
1 Replies

2. HP-UX

How to check password expiration date of particular user?

Hi Guys, I am new to HP-UX and want to find expiration date of particular user please also note i don't have root access on that server. for e.g. i have user abc on my HP box and want to know when its password going to expire and also when its password changed last time. I also try to... (7 Replies)
Discussion started by: Yasin Rakhangi
7 Replies

3. Shell Programming and Scripting

Find week of the year for given date using date command inside awk

Hi all, Need an urgent help on the below scenario. script: awk -F"," 'BEGIN { #some variable assignment} { #some calculation and put values in array} END { year=#getting it from array and assume this will be 2014 month=#getting it from array and this will be 05 date=#... (7 Replies)
Discussion started by: vijaidhas
7 Replies

4. What is on Your Mind?

Neo's passport expiration date.

I found this to be a bit of a disturbing coincidence. youtube.com/watch?v=CxW79CwSK9M&hd=1 (0 Replies)
Discussion started by: absorber
0 Replies

5. Shell Programming and Scripting

wget - cookie with expiration date

How can I create a cookie with expiration date using either wget or curl? I am able to use cli wget, cli curl, or php curl. I don't see that the cookies I have created contain an expiration date, and I have a problem logging into a forum that looks for the expiration date. (2 Replies)
Discussion started by: locoroco
2 Replies

6. Solaris

Expiration date of user account

Hi, How to check user account expiration account in user mode for SunOS 5.10? In Linux I can use chage command. I googled for answer for the problem but it was useless. Oskar (9 Replies)
Discussion started by: oskard
9 Replies

7. Shell Programming and Scripting

How to find a date which is 7 days past when given current date

hii all. I have to get the date of the 7th day past from the current date. if i give the current date as sep 3 then i must get the date as 27th of august. can we get the values from the "cal" command. cal | awk '{print $2}' will this type of command work. actually my need is if today is... (17 Replies)
Discussion started by: ladtony
17 Replies

8. Shell Programming and Scripting

Can I know find syntax to find given date files

Hi All, Can i use find command to know given date files? If yes, then please let me know the syntax for the same. Thanks in advance for your postive responses Regards, Bachegowda (3 Replies)
Discussion started by: bache_gowda
3 Replies

9. UNIX for Advanced & Expert Users

date issue-find prevoius date in a patricular format

Hi , I have written a shell script that takes the current date on the server and stores it in a file. echo get /usr/home/data-`date '+%Y%d'`.xml> /usr/local/sandeep/GetFILE.ini I call this GetFILE.ini file from an sftp program to fetch a file from /usr/home/ as location. The file is in... (3 Replies)
Discussion started by: bsandeep_80
3 Replies

10. UNIX for Dummies Questions & Answers

How to find Previous date and Coming date

Hi All, How to find a date which is 7 days from the current date as well as how to find a date which is 7 days before this current date. Urgently i need help. Thanks in Advance Regards Arunava (2 Replies)
Discussion started by: arunava_maity
2 Replies
Login or Register to Ask a Question