From owner-freebsd-questions@FreeBSD.ORG Tue Apr 13 13:37:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E19E16A4CE for ; Tue, 13 Apr 2004 13:37:00 -0700 (PDT) Received: from gorgo.centroin.com.br (gorgo.centroin.com.br [200.225.63.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EDA543D4C for ; Tue, 13 Apr 2004 13:36:59 -0700 (PDT) (envelope-from scuba@centroin.com.br) Received: from hypselo.centroin.com.br (hypselo.centroin.com.br [200.225.63.1])i3DKauX4022345 for ; Tue, 13 Apr 2004 17:36:56 -0300 (EST) Date: Tue, 13 Apr 2004 17:36:56 -0300 (EST) From: Sender: To: In-Reply-To: <407AF979.7060002@daleco.biz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: ssh root denied X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2004 20:37:00 -0000 Hi, On Mon, 12 Apr 2004, Kevin D. Kinsey, DaleCo, S.P. wrote: |Root logins are disallowed by default on FreeBSD |for security reasons. The recommended approach |is to log on an account that is a member of the |"wheel" group, and su(1) to root when necessary |for administrative purposes while doing your routine |work under a less-privileged UID... But, what should be te correct approach when you want to copy root's files and/or remote execute programs as root with scripts using scp/ssh and key authentication? Like: scp master.passwd host2:/etc/ or ssh host2 'pwd_mkdb -p /etc/master.passwd' - Marcelo