From owner-freebsd-questions@FreeBSD.ORG Sat Jan 21 20:34:38 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE7CB16A420 for ; Sat, 21 Jan 2006 20:34:38 +0000 (GMT) (envelope-from marcel@de.reuver.org) Received: from smtp14.wxs.nl (smtp14.wxs.nl [195.121.247.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AD7A43D70 for ; Sat, 21 Jan 2006 20:34:27 +0000 (GMT) (envelope-from marcel@de.reuver.org) Received: from ip5650cd1d.direct-adsl.nl (ip5650cd1d.direct-adsl.nl [86.80.205.29]) by smtp14.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0ITG007QJMHER0@smtp14.wxs.nl> for freebsd-questions@freebsd.org; Sat, 21 Jan 2006 21:34:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ip5650cd1d.direct-adsl.nl (Postfix) with ESMTP id 609C8D5501 for ; Sat, 21 Jan 2006 21:34:26 +0100 (CET) Received: from [127.0.0.1] (pc70.jaltadaheerd.nl [192.168.1.70]) by ip5650cd1d.direct-adsl.nl (Postfix) with ESMTP id F3B1BD54FD for ; Sat, 21 Jan 2006 21:34:21 +0100 (CET) Date: Sat, 21 Jan 2006 21:34:24 +0100 From: Marcel de Reuver In-reply-to: To: freebsd-questions@freebsd.org Message-id: <43D29AD0.7070604@de.reuver.org> Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5 (Windows/20051201) X-Virus-Scanned: by ClamAV at mailhost.jaltadaheerd.nl References: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: user accounts messed up 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: Sat, 21 Jan 2006 20:34:39 -0000 Jona Joachim wrote: Hi! I did something quite stupid... I installed postgresql from ports and created an unprivileged user account for it. I wanted to install the database in /var/pgsql and wanted to chown the folder to the unprivileged user. To do this, I entered the following as root: chown -R /var/pgsql/ As this command took more than two seconds I presumed chown had followed .. and so I hit Ctrl-C. After having done this I tried to switch to the unprivileged user account with su and it said something like "setuid not running". After having tried to recover from this situation without success I decided to reboot the system. Now I can't login to any user account anymore, not even root. I am told the password is not correct. I tried to boot in single user mode, mount /usr and change the root password with passwd but I am denied permission to change master.passwd. Is it possible that the user database is corrupt? I would be glad if anyone was able to help me. Greetings, Jona In single user mode the file system is mouted readonly. You have to remount all the file systems read-write.