From owner-freebsd-questions@FreeBSD.ORG Mon Jun 18 16:17:03 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2528316A41F for ; Mon, 18 Jun 2007 16:17:03 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id C30AF13C480 for ; Mon, 18 Jun 2007 16:17:02 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l5IGGKqn008834; Mon, 18 Jun 2007 12:16:20 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l5IGGKl3008833; Mon, 18 Jun 2007 12:16:20 -0400 (EDT) (envelope-from jerrymc) Date: Mon, 18 Jun 2007 12:16:20 -0400 From: Jerry McAllister To: Roland Smith Message-ID: <20070618161620.GA8808@gizmo.acns.msu.edu> References: <454500.65753.qm@web38804.mail.mud.yahoo.com> <14989d6e0706180722w1289526dm9be8395674f07177@mail.gmail.com> <20070618155151.GA94239@slackbox.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070618155151.GA94239@slackbox.xs4all.nl> User-Agent: Mutt/1.4.2.2i Cc: Harriet Severino , questions@freebsd.org, Christian Walther Subject: Re: Install issue: get root login in GUI 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: Mon, 18 Jun 2007 16:17:03 -0000 On Mon, Jun 18, 2007 at 05:51:51PM +0200, Roland Smith wrote: > On Mon, Jun 18, 2007 at 04:22:42PM +0200, Christian Walther wrote: > > On 18/06/07, Harriet Severino wrote: > > > Hi, > > > > > > I am having install isues and can not login as root in the GUI. I have > > > to re-boot and come up in single user mode to work as root. Then when I > > > need to look something up, I have to boot into regular mode, look it up > > > on the web, then re-boot into single user mode. This is cumbersome to > > > say the least. I need to install the jdk, and keep rebooting to check > > > the doc! > > > > By default root is not allowed to login to the GUI. So far, this is > > "works as designed". > > There are two options: > > 1. Switch to a console by pressing Ctrl+Alt+1 vor example. This will > > give you a console login that doesn't reject root. Do the things you > > want to do as root there. > > 2. Add yourself to the group "wheel". This will allow you to login *as > > a normal user*, open a terminal and do a "su -". Enter the root > > password, and you're done. To do this you probably need to use a > > console login and edit /etc/group apropriately. :-) > > It's better to use pw(8). to do user and group management. In this case > 'pw groupmod wheel -m ' would do the trick. > > Although you can edit /etc/group, you should not edit /etc/passwd, > because it should be generated from /etc/master.passwd. Therefore it's > best to get used to using pw(8). It will also help generate valid group > and passwd syntax. Sort of. Actually, you should use vipw(8) to edit /etc/passwd. It will take care of updating master.passwd and the database. But, using pw is OK too. ////jerry > > Roland > -- > R.F.Smith http://www.xs4all.nl/~rsmith/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)