Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "Ann Majeske" <Ann.Majeske@HP.com>
Subject: Re: User account management with enhanced security
Date: Wed, 20 Aug 2003 15:59:04 -0400	[thread overview]
Message-ID: <3f43d946$1@usenet01.boi.hp.com> (raw)
In-Reply-To: 505df60a.0308191859.4046e3e0@posting.google.com

"Nick" <nicholas_hogg@yahoo.com> wrote in message
news:505df60a.0308191859.4046e3e0@posting.google.com...
> Still having problems with this one...
> I'm running Tru64 Unix version 4.0F
...
> Here's the strange part... After a while (usually not less than about
> 10 minutes), the users entry in /etc/passwd disappears.  I don't know
> what causes this and would appreciate suggestions.
> After this has happened, I can still view the user entry in auth.db,
> and the user can still log in, and use 'passwd' to change their
> password.
...

Hi Nick,

It's true that there must be a corresponding passwd database
entry for each auth.db entry for the account to be considered
valid.  But, most likely you are using the hashed password
database on your system.  This consists of the /etc/passwd.dir
and /etc/passwd.pag files.  See "man mkpasswd.8" for more
details on the hashed password database.  As long as the
hashed password database has not been updated, your system
will still see the passwd database entries as if they were still
in the /etc/passwd file.  So, if you see an entry disappear from
the /etc/passwd  file and then run mkpasswd or any tool that
runs mkpasswd, then the user should not be able to log in anymore.

Why is this so important in your case?  It means that most likely
whatever is overwriting/editing your /etc/passwd file is not following
the appropriate protocols for modifications to the /etc/passwd file,
including honoring the /etc/ptmp lock and running mkpasswd
after updating the /etc/passwd file.  This pretty much rules out
someone else (or somewhere else in your scripts) using the
system tools (e.g. dxaccounts, vipw, useradd, usermod) to do
a simultaneous modification to the /etc/passwd file wiping out
the account that you just added.  It is still possible that one of
the system tools for V4.0F with whatever patch level you have
is missing the proper locking and updating in some critical (at
least to you!) path, but it isn't the first place I'd look.  This also
means that auditing auth_event isn't going to find the culprit either.

If it happens every time you add a user, the first place I'd look
for some evidence of editing and/or overwriting the /etc/passwd
file would be your own scripts that you are using to add users
(assuming that you're using scripts and not using useradd directly).
The next place to look would be any regular cron jobs on the
system or scripts that might be run by another administrator.  Are
you running any sort of remote distribution to keep files the same
between systems?  Does anyone else have access to the root
account on your system?

Ann




      reply	other threads:[~2003-08-20 19:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-12 23:27 User account management with enhanced security Nick
2003-08-13  7:46 ` Nikola Milutinovic
2003-08-13 16:53   ` Ann Majeske
2003-08-15  7:15     ` Nick
2003-08-20  2:59       ` Nick
2003-08-20 19:59         ` Ann Majeske [this message]
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