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 > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find a date which is 7 days past when given current date ladtony Shell Programming and Scripting 17 04-09-2009 04:06 PM
Can I know find syntax to find given date files bache_gowda Shell Programming and Scripting 3 03-26-2008 06:37 AM
date issue-find prevoius date in a patricular format bsandeep_80 UNIX for Advanced & Expert Users 3 11-15-2007 08:42 PM
Find julian date for given corresponding date srikanthus2002 Shell Programming and Scripting 2 10-10-2006 09:33 PM
How to find Previous date and Coming date arunava_maity UNIX for Dummies Questions & Answers 2 05-24-2001 11:41 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-26-2008
gilbav gilbav is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 6
Question find out expiration date

I want to know when my account is gonna expire. Is there a shell command that tells this?
  #2 (permalink)  
Old 11-26-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,257
On Linux there are different options for the passwd binary. Best check man passwd on your system.
  #3 (permalink)  
Old 11-26-2008
gilbav gilbav is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 6
Quote:
Originally Posted by zaxxon View Post
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 (permalink)  
Old 11-26-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,257
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 (permalink)  
Old 11-26-2008
gilbav gilbav is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 6
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 (permalink)  
Old 11-26-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,257
Try "uname" or "uname -a".
  #7 (permalink)  
Old 11-26-2008
gilbav gilbav is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 6
Exclamation

Quote:
Originally Posted by zaxxon View Post
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
Sponsored Links
Closed Thread

Bookmarks

Tags
expiration, shell script, shell scripting, unix scripting, unix scripting basics

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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