From owner-freebsd-questions@FreeBSD.ORG Wed Apr 30 01:02:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86BED106566B for ; Wed, 30 Apr 2008 01:02:07 +0000 (UTC) (envelope-from Hartleigh.Burton@destra.com) Received: from desexchf.destra.com (desexchf.destra.com [202.125.161.4]) by mx1.freebsd.org (Postfix) with ESMTP id 205E78FC18 for ; Wed, 30 Apr 2008 01:02:06 +0000 (UTC) (envelope-from Hartleigh.Burton@destra.com) Received: from [192.168.0.87] ([202.91.207.2]) by desexchf.destra.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 30 Apr 2008 11:03:47 +1000 Message-Id: <561D8FDB-EF75-4F2B-9DC5-62DC2A09AC7A@destra.com> From: Hartleigh Burton To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 30 Apr 2008 11:02:03 +1000 X-Mailer: Apple Mail (2.919.2) X-OriginalArrivalTime: 30 Apr 2008 01:03:47.0790 (UTC) FILETIME=[0B9326E0:01C8AA5E] Subject: rmuser failed / cannot readd user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2008 01:02:07 -0000 Hi readers! I am having problems with adding/removing user accounts. This seems to be related to a problem I was having yesterday (Subject: a monster stole my /), adding a user when / was at 108% capacity. I added a user called "mrawebuser", which failed because there was not enough free space on / at the time. Now when I try to add the user again it says the user already exists when it doesn't. I have used rmuser to remove the account and also manually check /etc/passwd, /etc/ master.passwd, & /etc/group - none of these files contain any reference to "mrawebuser". If I repeat the rmuser command it will find the user every time. Basically I would like to start fresh, completely remove this user and any reference to the account then recreate it. intranet# adduser -v Username: mrawebuser Full name: MRA Web User Uid (Leave empty for default): Login group [mrawebuser]: Login group is mrawebuser. Invite mrawebuser into other groups? []: Login class [default]: Shell (sh csh tcsh nologin) [sh]: Home directory [/home/mrawebuser]: Use password-based authentication? [yes]: Use an empty password? (yes/no) [no]: Use a random password? (yes/no) [no]: Enter password: Enter password again: Lock out the account after creation? [no]: Username : mrawebuser Password : ***** Full Name : MRA Web User Uid : 1005 Class : Groups : mrawebuser Home : /home/mrawebuser Shell : /bin/sh Locked : no OK? (yes/no): y pw: login name `mrawebuser' already exists adduser: ERROR: There was an error adding user (mrawebuser). Add another user? (yes/no): n Goodbye! intranet# rmuser -v mrawebuser Matching password entry: mrawebuser:*:1004:1005::0:0:MRA Web User:/home/mrawebuser:/bin/sh Is this the entry you wish to remove? y Remove user's home directory (/home/mrawebuser)? n Removing crontab for (mrawebuser):. Removing at(1) jobs owned by (mrawebuser): 0 removed. Removing IPC mechanisms. Terminating all processes owned by (mrawebuser): -KILL signal sent to 0 processes. Removing files owned by (mrawebuser) in /tmp: 0 removed. Removing files owned by (mrawebuser) in /var/tmp: 0 removed. Removing mail spool(s) for (mrawebuser):. Removing user (mrawebuser) from the system:pw: user 'mrawebuser' does not exist: No such file or directory Done.