LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-11-2013, 03:52 AM   #1
74razor
Member
 
Registered: Dec 2012
Posts: 39

Rep: Reputation: Disabled
Setting and checking the expiration date of a user


I'm using CentOS 6.4 and adding a user account with an expiration date.

Syntax I've used is: useradd -e 2013-12-31 smith

Now, how do I verify this is part of smith's user account? I've tried looking in /etc/passwd, but the information is not listed there. I looked in /etc/default/useradd, but that is just the default variable that is blank.

I'm very new to CentOS, any help would be appreciated.
 
Old 10-11-2013, 03:54 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Try this:
Code:
chage -l username
 
1 members found this post helpful.
Old 10-11-2013, 03:58 AM   #3
74razor
Member
 
Registered: Dec 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
Try this:
Code:
chage -l username
Exactly what I was looking for, thank you for your time.
 
  


Reply



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
[SOLVED] Certificate expiration date questions angel115 Linux - Security 4 11-11-2011 03:01 AM
Setting a new expiration date on a .pem file for apache ivanmarsh Red Hat 1 08-08-2009 01:06 PM
Root password expiration date? abylin1 Linux - Security 1 01-28-2009 02:44 PM
setting cookie expiration date in php mohtasham1983 Programming 1 08-10-2007 08:30 AM
/etc/shadow expiration date liguorir Linux - Software 1 05-04-2004 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:35 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
Open Source Consulting | Domain Registration