From owner-freebsd-questions@FreeBSD.ORG Sat Aug 11 20:08:12 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F022416A41A for ; Sat, 11 Aug 2007 20:08:12 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.freebsd.org (Postfix) with ESMTP id 5B29313C468 for ; Sat, 11 Aug 2007 20:08:12 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from atlantis.dyndns.org (athedsl-305956.home.otenet.gr [85.73.242.194]) by aiolos.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l7BK89lI029581; Sat, 11 Aug 2007 23:08:10 +0300 Message-ID: <46BE1728.4010407@otenet.gr> Date: Sat, 11 Aug 2007 23:08:08 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: James Hicks References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: FW: Request to mailing list freebsd-hackers rejected X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2007 20:08:13 -0000 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 > > 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 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 -g -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