From owner-freebsd-questions@FreeBSD.ORG Mon Jan 19 14:57:09 2004 Return-Path: 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 8FDCA16A4CE for ; Mon, 19 Jan 2004 14:57:09 -0800 (PST) Received: from cpanel10.gzo.com (69-56-171-54.theplanet.com [69.56.171.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0CA243D49 for ; Mon, 19 Jan 2004 14:57:03 -0800 (PST) (envelope-from dany_list@natzo.com) Received: from [38.119.208.42] (helo=natzo.com) by cpanel10.gzo.com with asmtp (TLSv1:RC4-MD5:128) (Exim 4.24) id 1AiiKF-0007Qd-1D; Mon, 19 Jan 2004 16:56:55 -0600 Message-ID: <400C60B8.5080100@natzo.com> Date: Mon, 19 Jan 2004 17:56:56 -0500 From: Dany User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Fitzpatrick , freebsd-questions@freebsd.org References: <1074552510.11638.119.camel@columbus> In-Reply-To: <1074552510.11638.119.camel@columbus> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel10.gzo.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - natzo.com Subject: Re: Root lost after KDE user manager change X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2004 22:57:09 -0000 Robert Fitzpatrick wrote: >On 5.2, I install, startx, go in to the user manager and set my admin >user created during installation to the wheel group, exit and save >changes. Now I can't login as root after logging out. I think this >happens no matter what changes you do in the user manager, once saved, >root is gone. Does not show up in user list to start with. This is a >brand new install, thank you, so I did it again just to be sure that was >all I did. Is this well known? > > > there is a bug in Kuser, it resets the "expired flag" for all users. To log in without root password you should : While the system is booting and you see something like this: Hit [ENTER} to boot immediately, or any other key for command prompt. Booting [kernel] in 8 seconds..... Hit any key except the enter key! You should get a prompt. At the prompt, type: >unload all >load kernel >boot -s Let the boot process continue until it asks you for a shell. Then just hit Enter for 'sh'. At this time, only your root partition is mounted. You will need to mount your /usr partition so you can use the 'passwd' command. For example: mount /dev/ad0s1c /usr To make your root partition read-write, you will need to execute this command: mount -u / The root partition should now be mounted read-write. Now you can use 'passwd' command to change the root password. Edit /etc/master.passwd (using ee for example) and reset all the "expiration flags" to 0 (they should show -1) # passwd root # pwd_mkdb /etc/master.passwd Then if I remember you can just type boot. PS: I've collected the above information from forums and mailing lists. Sorry for the lack of copyright notice.