From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,be44217ef07ba384 X-Google-Attributes: gidfee84,public From: Ed Wensell III aka THE StormRaiser Subject: Re: User troubles Date: 1999/08/31 Message-ID: <37CBCEE0.3F88@pstcc.cc.tn.us.net>#1/1 X-Deja-AN: 519289777 Content-Transfer-Encoding: 7bit References: <7qe74r$48j$1@buck.internorth.com> <37CABED3.606F@pstcc.cc.tn.us.net> <7qesel$ap7$1@buck.internorth.com> Content-Type: text/plain; charset=us-ascii Organization: Pellissippi State Technical Community College Mime-Version: 1.0 Reply-To: ewensell@pstcc.cc.tn.us.net Newsgroups: comp.unix.osf.osf1 Is Enhanced Security (C2) enabled (/usr/sbin/rcmgr get SECURITY BASE)? According to the removeuser man page (which uses userdel for the actual delete): Security Note If you have enhanced security installed on your system, you should use the dxaccounts command to remove users. See the Security manual and the dxaccounts(8X) reference page for more information. Also, if you have enhanced security enabled, dxaccounts will only let you "retire" accounts, not delete (C2 specification, recycling of UIDs/Usernames not allowed. Man page is slightly misleading). If you really want to remove an account, the only way will be to do it manually (as another poster states). From the DUNIX 4.0d docs: (http://www.unix.digital.com/faqs/publications/pub_page/doc_list.html) 10.4.2 Removing a User Account Manually To manually remove a user account from your system: 1.Remove the user's files and directories. 2.Remove the user's entry from the group file. 3.Remove the user's entry from the passwd file. 4.Remove the user's /usr/spool/mail/username file. The rest of that section describes how to do each step. After you remove the user from the passwd file on an Enhanced Security system, you will need to run something to get the protected user database in synch. I do not remember what it is (man prpasswd). Although, as long as the user's directory/shell definition is gone, that should be enough. I do know the passwd synch/update is done automagically during reboots... :) Kinda wish D/T64 UNIX had a "Slightly Enhanced Security" mode. Basically, shadow passwords with user delete capability... :) Richard Moore wrote: > > Thanks for the help on this. It almost worked. I now can add users. > However when I go to removeuser I get: > > Is this the entry you want to delete (y/n)? y > Working ...userdel: Password entry is corrupted. Please repair the password > file > and then run Account Manager > > User (alee) was not removed. > > We have tried rebuilding the user file, resetting the server rebuilding > kernel, no joy. > > Thanks In advance > Richard -- Until soon... Ed Wensell III Systems and Operations Support, Pellissippi State E-mail hint: A college with a dot net domain?