From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078718212005.tru64-unix-managers.marc@archive.invalid> From: Peter Bartal Date: Fri, 28 Aug 1998 07:06:00 +0000 To: tru64-unix-managers Subject: SUMMARY: unlock account from command line X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078718212005 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