Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Nov 2004 17:32:42 +0000
From:      Daniel Bye <freebsd-questions@slightlystrange.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: su: Sorry - 5.2.1 -
Message-ID:  <20041106173242.GA24055@catflap.slightlystrange.org>
In-Reply-To: <aab166ce04110609234b42cbae@mail.gmail.com>
References:  <aab166ce04110609234b42cbae@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 06, 2004 at 11:23:44AM -0600, Gable Barber wrote:
> $ su
> su: Sorry
> $

In BSD, you need to be a member of group `wheel' to use su.  Login as
root, and edit the /etc/group file to add your username to wheel.

Alternatively, use the pw command.  Something like this should work:

# ps user mod <username> -Gwheel

> The FAQ says to post this first :
> 
> $ uname -a
> FreeBSD tcb.garagemoderne.com 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0:
> Mon Feb 23 20:45:55 GMT 2004    
> root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC  i386
> $
> 
> 
> And I cant SSH in as root. I am VERY new to FreeBSD, and am lost. I
> have been using Linux (RH9/Fedora) for awhile, so I understand some
> basics, but I cannot figure this one out.

The default behaviour of SSH in FreeBSD is to not allow remote root
login.  If you really must allow root login, edit /etc/ssh/sshd_config
and add a line 

PermitRootLogin yes

If you do this, I suggest you disable password authentication and use
public key authentication instead.

HTH

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041106173242.GA24055>