SUMMARY: unlock account from command line

From: Peter Bartal <bartik_at_gmx.net>
Date: Fri, 28 Aug 1998 08:06:00 +0100

First of all, thanks to the following people who took the time to answer:

Steve Copeland
Saar Picker
Mark Allen
Paul Yahnig
Matt Moore
Helen Tay
Ken McCoy
Guido Burak
Girish Phadke
Jasper Hoon

    I really used to accomplish this task using dxaccounts. I think I'm
going to use the command line more often. The gui is nice. But I'll stick to
my keyboard rather than to a rodent...

I picked the answer which I think covers the problem best, from Steve
Copeland:

 Usermod -x administrative_lock_applied=0 username
works if the user is only locked and not expired etc.

/usr/tcb/bin/edauth -g username |
  sed 's/string-to-alter-or-remove/string-to-replace/' |
  /usr/tcb/bin/edauth -s

will fix the others, once you determine from
/usr/tcb/bin/edauth -g username
what should be altered/removed.

man usermod(8), edauth(8) and prpasswd(4) for details (such as they
are.)

Cheers.

comment: the string-to-alter-or-remove in my case shoud be u_lock
                 and the string-to-replace shoud be u_lock_at_
----------------------------------------------------------------------------
--------

Peter Bartal Internet : bartal_at_gmx.net
Pribinova 25 Voice : 421-07-5634517
Bratislava Corinex Group a.s.
Slovakia
Received on Fri Aug 28 1998 - 06:30:53 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT