Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jul 2002 10:13:31 -0700
From:      "Balaji, Pavan" <pavan.balaji@intel.com>
To:        "'Roman Neuhauser'" <neuhauser@bellavista.cz>, Gavin <gauin_36@d3.dion.ne.jp>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   RE: su to root
Message-ID:  <3D386AED1B47D411A94300508B11F18703BC5BBE@fmsmsx116.fm.intel.com>

next in thread | raw e-mail | index | archive | help

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 <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
> 

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?3D386AED1B47D411A94300508B11F18703BC5BBE>