From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,84ff8db072b80871 X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: An ultimate way to remove a user Date: 1999/01/18 Message-ID: <36A31D69.3DEF78D3@ev.co.yu>#1/1 X-Deja-AN: 433982285 Content-Transfer-Encoding: 7bit References: <369F33EE.BCC83099@vsb.cz> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: EPS JP Elektrovojvodina Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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.