Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu>
Subject: Re: An ultimate way to remove a user
Date: 1999/01/18	[thread overview]
Message-ID: <36A31D69.3DEF78D3@ev.co.yu> (raw)
In-Reply-To: 369F33EE.BCC83099@vsb.cz

Ivan Dolezal wrote:
> 
> Hello,
> 
> I run a machine with Enhanced Security. My problem sounds: How to remove
> ultimately a user? For good, no track of him. How to do it "pure way?"

removeuser

> When I user "deluser -r", it only retires this user. His track is still
> in /etc/passwd what is definitively a TROUBLE, because some of older
> applications that I run, test existence of user by finding his login
> name in this file.

The idea behind "retiring user" still eludes me. A retired user cannot
log-in, cannot be removed, or "un-retired" through dxaccounts. What's
the use of it? If I wanted to forbid log-in, I could just lock the user.
I think it is meant for a situation where you have many accounts and
want some of them to automatically seize "live", but without deleting
the files. That is the "lifetime" option of the account.

> On the other hand, it probably is not good idea just to remove a line
> from /etc/passwd. If it was, then why'd "userdel" in "removeuser"
> started yelling:
> 
> Working ...userdel: Error: modification of a retired user is not
> allowed.

That's just the way they made it. You must first un-retire user, then
you can remove it. The only way I found, was "edauth". Pain in the ass.

> Anyway, I don't know what would be the consequences of just erasing the
> line in /etc/passwd?

... And not rebuilding the hashed password database? :-) Use vipw.

> I'd like to know too, if it is possible to reuse UID of retired user.

No. That user is still on the system.

Nix.



  parent reply	other threads:[~1999-01-18  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 ` Jeff Pabian
1999-01-15  5:00 ` Steen Hansen
1999-01-18  5:00 ` Nikola Milutinovic [this message]
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
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