LinuxQuestions.org
Register a domain and help support LQ
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 02-24-2011, 10:27 PM   #1
maobin
Member
 
Registered: Feb 2011
Posts: 42

Rep: Reputation: 0
Account expires


Hi,
I would like to know what does the Account Expires when I run chage -l means? and what value I can set to it?

I cant find anything on it in man.
 
Old 02-24-2011, 11:06 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,352
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
http://unixhelp.ed.ac.uk/CGI/man-cgi?chage+1

chage -l means "list account expiration information." The -l switch does not change anything; it merely displays information.

When I do chage -l [my user name] on this computer, I get

Code:
Last password change					: [date]
Password expires					: never
Password inactive					: never
Account expires						: never
Minimum number of days between password change		: 0
Maximum number of days between password change		: 99999
Number of days of warning before password expires	: 7

User can use chage -l to see how long his account is valid. Only root can use the other chage switches.
 
Old 02-25-2011, 12:21 AM   #3
maobin
Member
 
Registered: Feb 2011
Posts: 42

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frankbell View Post
http://unixhelp.ed.ac.uk/CGI/man-cgi?chage+1

chage -l means "list account expiration information." The -l switch does not change anything; it merely displays information.

When I do chage -l [my user name] on this computer, I get

Code:
Last password change					: [date]
Password expires					: never
Password inactive					: never
Account expires						: never
Minimum number of days between password change		: 0
Maximum number of days between password change		: 99999
Number of days of warning before password expires	: 7

User can use chage -l to see how long his account is valid. Only root can use the other chage switches.
what i wanna know is what does "Account expires" means. Is it the date the account expires?
 
Old 02-25-2011, 09:23 AM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,832
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
It can either be the date the account expires or the number of days until it expires.

Expires meaning the user will no longer be able to log into the machine.

Last edited by sag47; 02-25-2011 at 09:34 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
cron reporting user account expired, chage -l shows it never expires? kschmitt Linux - Server 5 01-06-2010 09:18 AM
Iptables rule that expires after set time? dissident85 Linux - Networking 2 12-10-2009 06:24 AM
Password expires at GMT not local time philneil Linux - Server 2 06-15-2009 07:12 PM
LXer: 'Expires' website speed boost LXer Syndicated Linux News 0 12-27-2006 01:54 AM
When account expires user still receives email ganninu Linux - Newbie 3 08-01-2003 06:41 AM


All times are GMT -5. The time now is 08:33 AM.

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