From owner-freebsd-questions Tue Jul 16 7:54:50 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 B17E837B400 for ; Tue, 16 Jul 2002 07:54:46 -0700 (PDT) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id 2D89643E6A for ; Tue, 16 Jul 2002 07:54:45 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: (qmail 25541 invoked from network); 16 Jul 2002 14:54:43 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 16 Jul 2002 14:54:43 -0000 Received: from freepuppy.bellavista.cz (localhost.bellavista.cz [127.0.0.1]) by freepuppy.bellavista.cz (8.12.5/8.11.6) with ESMTP id g6GEsdf4002037; Tue, 16 Jul 2002 16:54:39 +0200 (CEST) (envelope-from neuhauser@bellavista.cz) Received: (from roman@localhost) by freepuppy.bellavista.cz (8.12.5/8.12.4/Submit) id g6GEsbrf002036; Tue, 16 Jul 2002 16:54:37 +0200 (CEST) X-Authentication-Warning: freepuppy.bellavista.cz: roman set sender to neuhauser@bellavista.cz using -f Date: Tue, 16 Jul 2002 16:54:37 +0200 From: Roman Neuhauser To: Gavin Cc: freebsd-questions@FreeBSD.ORG Subject: Re: su to root Message-ID: <20020716145437.GC876@freepuppy.bellavista.cz> Mail-Followup-To: Gavin , freebsd-questions@FreeBSD.ORG References: <02071618100900.01817@Gavin2.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <02071618100900.01817@Gavin2.localdomain> User-Agent: Mutt/1.5.1i 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 > 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