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: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Subject: Re: An ultimate way to remove a user Date: 1999/01/23 Message-ID: <78dmj7$kuq$1@node2.nodak.edu>#1/1 X-Deja-AN: 436141544 Content-Transfer-Encoding: 7bit References: <369F33EE.BCC83099@vsb.cz> <36A31D69.3DEF78D3@ev.co.yu> <36A5D1FB.1DF8BB28@ev.co.yu> Content-Type: text/plain; charset=US-ASCII X-Complaints-To: abuse@nodak.edu X-Trace: node2.nodak.edu 917134759 21466 134.129.106.23 (23 Jan 1999 23:39:19 GMT) Organization: North Dakota Higher Education Computing Network (NDHECN) Mime-Version: 1.0 NNTP-Posting-Date: 23 Jan 1999 23:39:19 GMT Newsgroups: comp.unix.osf.osf1 In article <36A5D1FB.1DF8BB28@ev.co.yu>, Nikola Milutinovic wrote: > jxfaultl@bbechtel.com wrote: > > > > Nikola Milutinovic 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