tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: unlock account from command line
@ 1998-08-28  7:06 Peter Bartal
  0 siblings, 0 replies; only message in thread
From: Peter Bartal @ 1998-08-28  7:06 UTC (permalink / raw)
  To: tru64-unix-managers

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@
----------------------------------------------------------------------------
--------

Peter Bartal Internet : bartal@gmx.net
Pribinova 25 Voice : 421-07-5634517
Bratislava Corinex Group a.s.
Slovakia

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-08-28  7:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-28  7:06 SUMMARY: unlock account from command line Peter Bartal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox