* Enhanced security and user{mod,del}
@ 1998-11-03 5:00 Chris Weber
1998-11-05 5:00 ` Chris Weber
0 siblings, 1 reply; 3+ messages in thread
From: Chris Weber @ 1998-11-03 5:00 UTC (permalink / raw)
We recently upgraded an Alpha server to Digital UNIX 4.0D and turned on
enhanced security, primarily for its password-hiding function. Instead of
editing /etc/passwd and running mkpasswd to create or delete
authorizations, our automated authorization process now runs useradd
and userdel .
When we switched from BASE to ENHANCED security mode, the ~5500 existent
authorizations were auto-migrated to their proper homes in whatever files
were appropriate. This seems to have worked just swell, and I can modify
these accounts with usermod and retire them with userdel .
There's a problem, though. Any authorization created *after* the
auto-migrate can't be modified by either usermod or userdel . Any
attempt to apply either of these applications to a post-4.0D authorization
results in the message:
Specified user not found
edauth has no problem finding, modifying, or deleting the auth.db entry
for any user about which user{del,mod} has barked, and vipw lets me
update the non-extended parts of a user profile, so apparently there's a
way around this. However, I'd feel a lot better if the user???
applications just worked their magic, particularly if they have to update
files about which I have no knowledge.
I just installed the latest consolidated patch file for 4.0D (19980717)
in hopes that that would clear up the problem, but no dice.
Can anyone shed any light on this odd behavior? I'm perplexed.
Thanks in advance for any help.
--
Chris Weber <weber@bucknell.edu>
Bucknell ISR/CCS
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Enhanced security and user{mod,del}
1998-11-03 5:00 Enhanced security and user{mod,del} Chris Weber
@ 1998-11-05 5:00 ` Chris Weber
1998-11-08 5:00 ` Tim Mooney
0 siblings, 1 reply; 3+ messages in thread
From: Chris Weber @ 1998-11-05 5:00 UTC (permalink / raw)
In article <weber-0311981345480001@spinel.bucknell.edu>,
weber@bucknell.edu (Chris Weber) wrote:
> There's a problem, though. Any authorization created *after* the
>auto-migrate can't be modified by either usermod or userdel . Any
>attempt to apply either of these applications to a post-4.0D authorization
>results in the message:
>
> Specified user not found
> [...]
> Can anyone shed any light on this odd behavior? I'm perplexed.
>
> Thanks in advance for any help.
Well, I stumbled upon the answer. It seems there was an empty line
between two entries in /etc/passwd. Mkpasswd ignores the empty line when
creating the /etc/passwd DBM files, but user{del,mod} apparently considers
the empty line as EOF during its scan for the requested username. This
sort of thing isn't particularly easy to find as there's no other
indication anywhere that there's anything wrong.
Sigh.
--
Chris Weber <weber@bucknell.edu>
Bucknell University Computer and Communication Services
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Enhanced security and user{mod,del}
1998-11-05 5:00 ` Chris Weber
@ 1998-11-08 5:00 ` Tim Mooney
0 siblings, 0 replies; 3+ messages in thread
From: Tim Mooney @ 1998-11-08 5:00 UTC (permalink / raw)
In article <weber-0511981151570001@spinel.bucknell.edu>,
Chris Weber <weber@bucknell.edu> wrote:
> In article <weber-0311981345480001@spinel.bucknell.edu>,
> weber@bucknell.edu (Chris Weber) wrote:
>
> Well, I stumbled upon the answer. It seems there was an empty line
> between two entries in /etc/passwd. Mkpasswd ignores the empty line when
> creating the /etc/passwd DBM files, but user{del,mod} apparently considers
> the empty line as EOF during its scan for the requested username. This
> sort of thing isn't particularly easy to find as there's no other
> indication anywhere that there's anything wrong.
You may want to periodically run
pwck
grpck
authck -a -v
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-11-08 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-03 5:00 Enhanced security and user{mod,del} Chris Weber
1998-11-05 5:00 ` Chris Weber
1998-11-08 5:00 ` Tim Mooney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox