tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Jon Wright <jon.wright () ui ! com>
To: tru64-unix-managers
Subject: SUMMARY: Can't enable user from command line (w/ enhanced security)
Date: Fri, 02 Jul 1999 16:28:41 +0000	[thread overview]
Message-ID: <96079058315686.tru64-unix-managers.marc@archive.invalid> (raw)

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 <harbaugh@ncifcrf.gov>:

> 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 <a.busch@qut.edu.au>
Rober Mulley <robert@gnsconsulting.com.au>
Marie-Claude Vialatte <mc.vialatte@cust.univ-bpclermont.fr>
Toni Harbaugh-Blackford <harbaugh@ncifcrf.gov>
Piotr Bienias <bienias@ae.katowice.pl>
Gordon Lawson <gordon.lawson@uk.akzonobel.com>

Regards,
Jon

-- 
Jon Wright
Unified Information, Inc.
voice: 425-814-4019
fax: 425-814-4001
mailto:jon.wright@ui.com

                 reply	other threads:[~1999-07-02 16:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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