Re-activating expired accounts

This is a discussion on Re-activating expired accounts within the Linux Administration forums, part of the Linux Forums category; I let my Linux SMP machine lie dormant for a number of months. I am trying to bring the system &...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-20-2004
Mike
 
Posts: n/a
Default Re-activating expired accounts

I let my Linux SMP machine lie dormant for a number of months. I am trying
to bring the system "to life" again, but in the interim had several user
accounts become expired, how do I re-activate those accounts without
deleting them and recreating them?

I am a bit concerned as the man page for adding new users states, and I am
paraphrasing, that when an account expiration date passes, the account is
permanently disabled. I don't have too much in the user directories, but
this could be a rather large problem when I start to do development on this
machine.

I am using SuSE 8.0 Pro, but the question is one of a more general concern,
and I don't believe it to be specific to any distro.

Is there a command that will re-active the existing account without
disturbing the user file structure.

Thanks in advance

Mike
--
"The battle, sir, is not to the strong alone; it is to the vigilant, the
active, the brave." - Patrick Henry, from Liberty Or Death Speech

"Government is not reason; it is not eloquence; it is force! Like fire, it
is a dangerous servant and a fearful master." - George Washington

"The difference between being a coward and a man is not whether you're
scared, it's what you do while you're scared.'' - Staff Sgt. Jeff Struecker
's direction to a terrified Ranger prior to both rejoining the firefight in
Mogadishu Somalia, Oct. 3, 1993.

"All that is necessary for the triumph of evil is for good men to do
nothing." - Edmond Burke


Reply With Quote
  #2 (permalink)  
Old 09-21-2004
Dave Smith
 
Posts: n/a
Default Re: Re-activating expired accounts

On Mon, 20 Sep 2004 13:26:37 -0500, Mike wrote:

> I let my Linux SMP machine lie dormant for a number of months. I am trying
> to bring the system "to life" again, but in the interim had several user
> accounts become expired, how do I re-activate those accounts without
> deleting them and recreating them?
>
> I am a bit concerned as the man page for adding new users states, and I am
> paraphrasing, that when an account expiration date passes, the account is
> permanently disabled. I don't have too much in the user directories, but
> this could be a rather large problem when I start to do development on this
> machine.
>
> I am using SuSE 8.0 Pro, but the question is one of a more general concern,
> and I don't believe it to be specific to any distro.
>
> Is there a command that will re-active the existing account without
> disturbing the user file structure.
>
> Thanks in advance
>
> Mike


"usermod -U username"

From the passwd(5) man page ('man -S5 passwd'...S5 refers to section 5):


-U Unlock a user's password. This removes the '!' in front of the encrypted password. You
can't use this option with -p or -L.

The encrypted password it refers to is in the /etc/shadow file (man -S5
shadow)


--Dave


Reply With Quote
  #3 (permalink)  
Old 09-21-2004
Mike
 
Posts: n/a
Default Re: Re-activating expired accounts

"Dave Smith" <dave@djms.JUNKME.net> wrote in message
news:pan.2004.09.20.23.49.22.139282@djms.JUNKME.ne t...
> On Mon, 20 Sep 2004 13:26:37 -0500, Mike wrote:
>
> > I let my Linux SMP machine lie dormant for a number of months. I am

trying
> > to bring the system "to life" again, but in the interim had several user
> > accounts become expired, how do I re-activate those accounts without
> > deleting them and recreating them?
> >
> > I am a bit concerned as the man page for adding new users states, and I

am
> > paraphrasing, that when an account expiration date passes, the account

is
> > permanently disabled. I don't have too much in the user directories,

but
> > this could be a rather large problem when I start to do development on

this
> > machine.
> >
> > I am using SuSE 8.0 Pro, but the question is one of a more general

concern,
> > and I don't believe it to be specific to any distro.
> >
> > Is there a command that will re-active the existing account without
> > disturbing the user file structure.
> >
> > Thanks in advance
> >
> > Mike

>
> "usermod -U username"
>
> From the passwd(5) man page ('man -S5 passwd'...S5 refers to section 5):
>
>
> -U Unlock a user's password. This removes the '!' in front of

the encrypted password. You
> can't use this option with -p or -L.
>
> The encrypted password it refers to is in the /etc/shadow file (man -S5
> shadow)
>
>
> --Dave
>


Thanks for the help.

Mike


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:50 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0