LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2005, 08:02 AM   #1
jsheffie
Member
 
Registered: Dec 2004
Location: Florida, USA
Distribution: Suse 10.0, OSX.4, Solaris 10
Posts: 163

Rep: Reputation: 30
account expirations


Hi,
quick question.

Does anyone know how to figure out when your account will expire on a linux system using it?


thanks,
-Me
 
Old 05-21-2005, 12:53 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You can use
Code:
 passwd -S
Read the passwd(1) man page for the meaning of the fields. The account status information is stored in /etc/shadow -- see shadow(5).

Last edited by Berhanie; 05-21-2005 at 12:56 AM.
 
Old 05-21-2005, 03:20 AM   #3
spariggio82
Member
 
Registered: Apr 2004
Location: Camporotondo Etneo, Sicily
Distribution: SuSE 8.2 SuSE 9.1 Fedora C1 Slackware 10.1 Knoppix 3.9
Posts: 174

Rep: Reputation: 30
You'll have to change a number (I'm not remebering exactly which) in /etc/shadow that indicates how many days your account can live!!!!

Good luck
 
Old 05-21-2005, 10:27 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Yes, but it's probably safer to adjust those fields using the "passwd" command. ("Passwd -S" will show you what those fields are. Just read the man page. It's all there).

Last edited by Berhanie; 05-21-2005 at 10:28 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
system account or user account??? yenonn Linux - Newbie 6 05-10-2006 08:49 PM
cyrus email account linux account nobu Linux - Enterprise 0 10-31-2005 04:16 AM
ANYBODY WANT A GMAIL Account jon2kx General 9 08-17-2004 06:39 AM
I want a GMail account! jrbush82 General 1 08-06-2004 09:58 PM
New account Mitch LQ Suggestions & Feedback 4 07-14-2003 01:43 PM


All times are GMT -5. The time now is 01:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration