find out expiration date


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers find out expiration date
# 1  
Old 11-26-2008
Question find out expiration date

I want to know when my account is gonna expire. Is there a shell command that tells this?
# 2  
Old 11-26-2008
On Linux there are different options for the passwd binary. Best check man passwd on your system.
# 3  
Old 11-26-2008
Quote:
Originally Posted by zaxxon
On Linux there are different options for the passwd binary. Best check man passwd on your system.
Thanks. I read "man passwd", but I didn't see the answer there (Is this related to password expiration only? because my password does not need changing, rather my account itself is about to expire, and I wanna know when).
# 4  
Old 11-26-2008
Try if you have a -S switch:
Code:
passwd -S

Description should be in the man page. You still did not say what kind of Unix/Linux you use, maybe you have different options for passwd or can use another tool to check such stuff.
It should display what is in the /etc/shadow for your account hopefully.
# 5  
Old 11-26-2008
On "passwd -S" I get "invalid option".
I'm afraid I know almost nothing about the system, which is why I gave no description. It's Unix. Maybe Solaris (?). The shell I'm currently using is tcsh.
# 6  
Old 11-26-2008
Try "uname" or "uname -a".
# 7  
Old 11-26-2008
Error

Quote:
Originally Posted by zaxxon
Try "uname" or "uname -a".
My god, it seems to be Linux! I'm sorry ...
on "uname -a" I get:
Linux math1 2.6.16.54-0.2.8-smp #1 SMP Mon Jun 23 13:41:12 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux
 
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