Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Aug 2007 23:08:08 +0300
From:      Manolis Kiagias <sonicy@otenet.gr>
To:        James Hicks <ytwok_karate@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FW: Request to mailing list freebsd-hackers rejected
Message-ID:  <46BE1728.4010407@otenet.gr>
In-Reply-To: <BAY135-F38DC0F2FC7F5030C395EA0E6E20@phx.gbl>
References:  <BAY135-F38DC0F2FC7F5030C395EA0E6E20@phx.gbl>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
James Hicks wrote:
> Per instructions from the moderator below i'm making this post to the
> free-bsd questions mailing list.
>
>
> I'm building a samba server. I have an XP laptop using putty via ssh
> to remotley administer. I cannot use putty to logon as root directly.
> If I logon as my regular user I cannot su/sudo in as root. I tried
> modifying the sshd_config file with AllowUsers root@ip. This didn't
> work. Any suggestions? Im somewhat new to UNIX and nery new to
> FreeBSD, so my indepth knowledge is not the best.
>
> James
>
> <original message from freebsd-hackers snipped>
Direct root login from ssh is disabled for good reason, so please leave
it this way. If however you cannot su to root from your user account,
this is not a problem with ssh configuration, it is simply a problem of
your account not belonging to the wheel group. Check it using the following:

id <your_login_name>

you will see a list of groups. If you do not see "wheel" under these
groups, you are not able to su. In FreeBSD only members of the wheel
group can su root.
You can change this with the pw usermod command, something like:

pw usermod <your_login_name> -g <your_login_group> -G wheel

see man pw for details.
As for sudo, it is easy to setup, but you have to install it from ports:
cd /usr/ports/security/sudo
make install clean
then run visudo to configure

Hope this helps





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?46BE1728.4010407>