From owner-freebsd-questions@FreeBSD.ORG Tue Jan 20 20:46:56 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0AB71106564A for ; Tue, 20 Jan 2009 20:46:56 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 8AB418FC14 for ; Tue, 20 Jan 2009 20:46:55 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.ws.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id 67418EBC3F; Tue, 20 Jan 2009 15:28:42 -0500 (EST) Date: Tue, 20 Jan 2009 15:28:35 -0500 From: Bill Moran To: Akenner Message-Id: <20090120152835.aea0b37d.wmoran@potentialtech.com> In-Reply-To: <49762F6C.8040404@comcast.net> References: <49762F6C.8040404@comcast.net> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: Edit user groups 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: Tue, 20 Jan 2009 20:46:56 -0000 In response to Akenner : > Hi, > > I'm using FreeBSD 7.1-RELEASE and I have multiple user accounts set up. > I made about 4 for myself to use and do various testing with, and made > some for my Wife as well because She knows UNIX better than I do anyway heh. > > Anyway, one of the things I forgot about, was that FreeBSD by default > doesn't allow just anyone to use su. > > I come from mainly using Linux, where you can log in and then whenever > you need to open a root xterm or even a root shell, you just type the > password and go. I looked up how to do this but most of my results came > back with setting up user accounts, and other things. I did add another > user that was in the wheel group so I could do it, but I'd really like > to be able to add my main user account to the wheel group so I can su > from this one instead of doing su otheruser and then su again to root. > > I found while searching for this something that MIGHT be what I'm > looking for, but after reading it over, it seems I'd have to read > through the whole man page first and then, it could be bad if I mistype > something, or I could even screw up an account, which I can't risk. > > Is there an exact way to take a user account on my system, and add it to > the wheel group? man pw Specifically: pw usermod -n username -G wheel or pw groupmod -n wheel -m username -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/