* User account management with enhanced security
@ 2003-08-12 23:27 Nick
2003-08-13 7:46 ` Nikola Milutinovic
0 siblings, 1 reply; 6+ messages in thread
From: Nick @ 2003-08-12 23:27 UTC (permalink / raw)
Hi,
I've read through the documentation on enhanced security, and have
tried several different ways to create a user account. I have used
"useradd", "convuser", "usermod", and "passwd" in combination. An
entry is being made in the /etc/passwd file, however it is being
deleted by a system process within an hour of being created.
I know there is a GUI program called "dxaccounts" however my programs
must use a command line interface.
Any ideas appreciated,
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User account management with enhanced security
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
0 siblings, 1 reply; 6+ messages in thread
From: Nikola Milutinovic @ 2003-08-13 7:46 UTC (permalink / raw)
"Nick" <nicholas_hogg@yahoo.com> wrote in message
news:505df60a.0308121527.36468d50@posting.google.com...
> Hi,
> I've read through the documentation on enhanced security, and have
> tried several different ways to create a user account. I have used
> "useradd", "convuser", "usermod", and "passwd" in combination.
"convuser" is for converting from and to BASE/ENHANCED security modes.
"usermod" and "useradd" are the command line, non-interactive tools.
"passwd" is for changing passwords - interactively.
> An entry is being made in the /etc/passwd file, however it is being
> deleted by a system process within an hour of being created.
What system process?
Also, /var/tcb/files/auth.db should also be updated.
> I know there is a GUI program called "dxaccounts" however my programs
> must use a command line interface.
Does "dxaccounts" work? Are those accounts getting deleted?
> Any ideas appreciated,
Screwed up security system?
Nix.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User account management with enhanced security
2003-08-13 7:46 ` Nikola Milutinovic
@ 2003-08-13 16:53 ` Ann Majeske
2003-08-15 7:15 ` Nick
0 siblings, 1 reply; 6+ messages in thread
From: Ann Majeske @ 2003-08-13 16:53 UTC (permalink / raw)
>
> Also, /var/tcb/files/auth.db should also be updated.
>
This depends on what version you are running, which
wasn't specified. You can use /usr/tcb/bin/edauth to
look at the contents of the protected password
authentication database (i.e. auth.db). See "man edauth"
for information on the tool and "man prpasswd" for
information on the fields in the database. If you're
running a more recent version of the OS, the database
support includes full transational suport and database
recovery (see the V5.1A Security manual section 6.3.5).
Maybe this isn't set up right?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User account management with enhanced security
2003-08-13 16:53 ` Ann Majeske
@ 2003-08-15 7:15 ` Nick
2003-08-20 2:59 ` Nick
0 siblings, 1 reply; 6+ messages in thread
From: Nick @ 2003-08-15 7:15 UTC (permalink / raw)
"Ann Majeske" <Ann.Majeske@HP.com> wrote in message news:<3f3a732c@usenet01.boi.hp.com>...
> >
> > Also, /var/tcb/files/auth.db should also be updated.
> >
>
> This depends on what version you are running, which
> wasn't specified. You can use /usr/tcb/bin/edauth to
> look at the contents of the protected password
> authentication database (i.e. auth.db). See "man edauth"
> for information on the tool and "man prpasswd" for
> information on the fields in the database. If you're
> running a more recent version of the OS, the database
> support includes full transational suport and database
> recovery (see the V5.1A Security manual section 6.3.5).
> Maybe this isn't set up right?
Thanks for your help
Nick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User account management with enhanced security
2003-08-15 7:15 ` Nick
@ 2003-08-20 2:59 ` Nick
2003-08-20 19:59 ` Ann Majeske
0 siblings, 1 reply; 6+ messages in thread
From: Nick @ 2003-08-20 2:59 UTC (permalink / raw)
Still having problems with this one...
I'm running Tru64 Unix version 4.0F.
I need to create and delete user accounts from the command line,
rather than using dxaccounts. If I use 'useradd', an entry is made in
/etc/passwd and I can use 'edauth -g <username>' to see that users
entry in the protected password database (auth.db).
I can use passwd to set the initial password for the user, and this
gets updated in auth.db. I then use 'usermod -x
administrative_lock_applied=0 <username>' to unlock the account.
The user can then log in, and use 'passwd' to change their password,
and this too is updated in auth.db.
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.
If I run 'authck -p' it reports that <username> is in the protected
password database but not in /etc/passwd.
The HP Security documentation for 4.0F says that there must be a
corresponding entry in /etc/passwd for every entry in auth.db, and if
this is not the case then the account is not considered valid.
If anyone can enlighten me as to why the /etc/passwd entry is being
removed, and by what process, I would appreciate it. Also, if the
user can still log in and work without the entry in /etc/passwd, is
there any reason I should try and fix this, other than because the
doco says the account is not considered valid.
Regards,
Nick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User account management with enhanced security
2003-08-20 2:59 ` Nick
@ 2003-08-20 19:59 ` Ann Majeske
0 siblings, 0 replies; 6+ messages in thread
From: Ann Majeske @ 2003-08-20 19:59 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-08-20 19:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox