Date: Tue, 16 Jul 2002 16:54:37 +0200 From: Roman Neuhauser <neuhauser@bellavista.cz> To: Gavin <gauin_36@d3.dion.ne.jp> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: su to root Message-ID: <20020716145437.GC876@freepuppy.bellavista.cz> In-Reply-To: <02071618100900.01817@Gavin2.localdomain> References: <02071618100900.01817@Gavin2.localdomain>
next in thread | previous in thread | raw e-mail | index | archive | help
> From: Gavin <gauin_36@d3.dion.ne.jp>
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020716145437.GC876>
