From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079058315686.tru64-unix-managers.marc@archive.invalid> From: Jon Wright Date: Fri, 02 Jul 1999 16:28:41 +0000 To: tru64-unix-managers Subject: SUMMARY: Can't enable user from command line (w/ enhanced security) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079058315686 Essence of the original problem: > I created a new account using useradd and usermod. The entry for this > account in /etc/password is consistent with all the other (working) > accounts. I set the password with passwd. I tried to log in; no joy. I > did a usermod -x administrative_lock_applied=0; that didn't have any > effect. > > What more do I need to do to enable this account (from the command > line)? And also, is there a way to tell from the command line whether > or not an account is disabled? /tcb/bin/edauth is the magic tool. It can list and edit the authcap database that comes along with Enhanced Security. I got several pointers stating that a value of :u_lock: meant the account was disabled and :u_lock@: meant is was enabled. Well, I suspect my problem was that neither of these was in the record for my new user! So I compared a known working user against my new user and added :u_lock@: in the appropriate position. I also had to decrement the u_numunsuclog field down to something reasonable (from 8 to 1). Then I was able to login. This behavior could correspond to one tidbit I received from Toni Harbaugh-Blackford : > What version of DU4.0 are you running? This is actually a bug that > has been fixed as of 4.0D PK2. > You can stop this from happening - *without* installing the patch kit. > Immediately after changing the password for the user, run edauth and > remove the 'u_pwchanger' field. I didn't do what Toni said, but noticed that once I was able to login, the u_pwchanger field was removed from the user's record. So, this could be a known bug. A great, big THANKS (in no particular order) to: Andrew Busch Rober Mulley Marie-Claude Vialatte Toni Harbaugh-Blackford Piotr Bienias Gordon Lawson Regards, Jon -- Jon Wright Unified Information, Inc. voice: 425-814-4019 fax: 425-814-4001 mailto:jon.wright@ui.com