From owner-freebsd-questions Tue Jul 16 10:13:42 2002 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 13E4337B400 for ; Tue, 16 Jul 2002 10:13:38 -0700 (PDT) Received: from melete.ch.intel.com (chfdns02.ch.intel.com [143.182.246.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6163243E67 for ; Tue, 16 Jul 2002 10:13:37 -0700 (PDT) (envelope-from pavan.balaji@intel.com) Received: from fmsmsxvs042.fm.intel.com (fmsmsxvs042.fm.intel.com [132.233.42.128]) by melete.ch.intel.com (8.11.6/8.11.6/d: solo.mc,v 1.42 2002/05/23 22:21:11 root Exp $) with SMTP id g6GHDa611501 for ; Tue, 16 Jul 2002 17:13:36 GMT Received: from fmsmsx26.fm.intel.com ([132.233.42.26]) by fmsmsxvs042.fm.intel.com (NAVGW 2.5.2.11) with SMTP id M2002071610142103961 ; Tue, 16 Jul 2002 10:14:21 -0700 Received: by fmsmsx26.fm.intel.com with Internet Mail Service (5.5.2653.19) id ; Tue, 16 Jul 2002 10:13:33 -0700 Message-ID: <3D386AED1B47D411A94300508B11F18703BC5BBE@fmsmsx116.fm.intel.com> From: "Balaji, Pavan" To: "'Roman Neuhauser'" , Gavin Cc: freebsd-questions@FreeBSD.ORG Subject: RE: su to root Date: Tue, 16 Jul 2002 10:13:31 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG If you read the 'su' manpage, it says that IF the group '0', which usually corresponds to the 'wheel' group is missing, any user can use 'su'. I don't want to try removing group '0' on my machine, 'cause I'm pretty sure my 'root' account (and all the other accounts in the wheel group will be useless after that). I wonder what exactly this means. I don't remember seeing any option for creating/not-creating the wheel group while installation. Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -----Original Message----- > From: Roman Neuhauser [mailto:neuhauser@bellavista.cz] > Sent: Tuesday, July 16, 2002 9:55 AM > To: Gavin > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: su to root > > > > From: Gavin > > To: freebsd-questions@FreeBSD.ORG > > Subject: su to root > > Date: Tue, 16 Jul 2002 18:10:09 +0900 > > > > I've just installed FreeBSD 4.5, and using some of my linux > knowledge, > > I've tried to "su" to root from my user account, I've checked the > > online book and I cant seem to find anything about > su-ing... I'm also > > using "Unix hints and HACKS" as my first reference book.. Page 92 > > (Security) says I should type the complete path eg. /bin/su > > /bin/su root > > > > when I type $ /bin/su I get not found > > $ /bin/su root not found > > first, you can check whether a command is in your path by using > the which command, which is in available in all shells i have > installed: > > /usr/local/bin/zsh > roman@freepuppy ~ 107:0 > sh > $ which su > /usr/bin/su > $ which which > /usr/bin/which > $ exit > roman@freepuppy ~ 108:0 > tcsh > > which su > /usr/bin/su > > which which > which: shell built-in command. > > exit > exit > roman@freepuppy ~ 109:0 > bash > zsh: correct 'bash' to 'hash' [nyae]? n > zsh: command not found: bash > roman@freepuppy ~ 110:1 > :) > zsh: parse error near `)' > roman@freepuppy ~ 111:1 > which su > /usr/bin/su > roman@freepuppy ~ 112:0 > echo $SHELL > roman@freepuppy ~ 113:0 > which which > which: shell built-in command > roman@freepuppy ~ 114:0 > > > of course, if you're paranoid, you have to assume that the which > command has been replaced as well. > > > Another question, what group do I need to be in to su to root (if I > > need to be in a special group that is..) > > wheel > > -- > FreeBSD 4.6-STABLE > 4:46PM up 3:05, 6 users, load averages: 0.01, 0.02, 0.00 > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message