From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney)
Subject: Re: An ultimate way to remove a user
Date: 1999/01/23 [thread overview]
Message-ID: <78dmj7$kuq$1@node2.nodak.edu> (raw)
In-Reply-To: 36A5D1FB.1DF8BB28@ev.co.yu
In article <36A5D1FB.1DF8BB28@ev.co.yu>,
Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu> wrote:
> jxfaultl@bbechtel.com wrote:
> >
> > Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu> wrote:
> > > The idea behind "retiring user" still eludes me. A retired user cannot
> >
> > I always presumed it was to prevent UID reuse.
>
> For what purpose?
It's required by the C2 spec, under the "object reuse" sections. I believe
the rationale is there.
With regards to the original question: after one of the patch sets in 4.0B
(which was incorporated into 4.0D base, so 4.0D and later all act this way)
you can *not* delete a user using any of the POSIX user tools. removeuser
also won't work, since that just calls `userdel'. `vipw' may not even
work, depending on the size of your password file.
Some possible options:
1) if you have a 4.0B `userdel' command available somewhere (backups, an
older machine, etc) that has not been patched so that it only retires users,
use that instead of /usr/sbin/userdel.
2) do it the way we were forced to before the advent of the POSIX tools; lock
the password file and delete the lines. AFAIK, doing
mkdir /etc/ptmp
is all that's required to sucessfully "lock" the password file. From that
point, you can use a script or whatever to get rid of the lines in the
/etc/passwd file that need to be removed. Be sure to
rmdir /etc/ptmp
mkpasswd
/usr/tcb/bin/convuser -d
after deleting the lines from the password file.
3) log an enhancement request with Compaq, asking them to add an option to
to `userdel' that will allow you to actually remove users, even under C2
security.
Editorial comments: I think it's great that Digital and now Compaq are
serious about making sure their C2 security meets all of the C2 specification,
but they also need to realize that not everyone needs or wants (or can handle!)
the *full* C2 specification. Being able to delete users is something many
sites absolutely require. It's fine if the default behavior in `userdel' is
to retire users with C2 compliance in mind, but there really ought to be an
option to allow sysadmins to ignore the "no object reuse" and delete users
using the nice tools, rather than requiring a return to home grown scripts.
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
prev parent reply other threads:[~1999-01-23 5:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-15 5:00 An ultimate way to remove a user Ivan Dolezal
1999-01-15 5:00 ` Steen Hansen
1999-01-15 5:00 ` Jeff Pabian
1999-01-18 5:00 ` Nikola Milutinovic
1999-01-19 5:00 ` jxfaultl
1999-01-20 5:00 ` Nikola Milutinovic
1999-01-20 5:00 ` nick
1999-01-20 5:00 ` Bob Harris
1999-01-20 5:00 ` Ed Wensell III aka THE StormRaiser
1999-01-23 5:00 ` Tim Mooney [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