LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-24-2009, 04:17 PM   #1
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Question Expiry date for users


Hi Everyone,

There is another small confusion :
How to set expiry date for any user. Suppose a user got expired then how to re-activate that account again ?

Thank You,
Kapil
 
Old 04-24-2009, 05:29 PM   #2
sfjoe
Member
 
Registered: Jun 2007
Location: San Francisco
Distribution: Centos 4, Debian
Posts: 55

Rep: Reputation: 16
The command you want is passwd -x. See man passwd for details.
 
Old 04-27-2009, 02:44 PM   #3
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Question

Quote:
Originally Posted by sfjoe View Post
The command you want is passwd -x. See man passwd for details.
Hi There,
Thankn You for your help with that, but i don't want to lock the user, infact i want to set the expiry date for the users account. I get the information that if I use 'usermod -e 2009-04-30' then user a/c will get expire on 30 April 2009.
Now the big confusion is that how can I reactivate that account ???

Thank You,
kapil.
 
Old 04-27-2009, 02:46 PM   #4
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Question

Hi Everyone,

I get the information that if I use 'usermod -e 2009-04-30' then user a/c will get expire on 30 April 2009.
Now the big confusion is that how can I reactivate that account ???

Thank You,
kapil.
 
  


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
User login expiry date? geekgrl Linux - Security 7 07-04-2011 06:08 AM
how to check the password expiry date of a user? binary_0011 Other *NIX 1 06-04-2008 01:37 AM
Terminal Command to find out expiry date on user accounts Caighil Linux - Newbie 3 02-29-2008 04:47 PM
Can I retrieve certificate expiry date from an openssl certificate (command line) davee Linux - Security 1 07-21-2006 10:28 AM
Last login time/date for users barbar4854 Linux - General 2 03-03-2004 01:30 PM


All times are GMT -5. The time now is 03:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration