From owner-freebsd-questions@FreeBSD.ORG Tue Apr 13 14:16:24 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 2538816A4CE for ; Tue, 13 Apr 2004 14:16:24 -0700 (PDT) Received: from gorgo.centroin.com.br (gorgo.centroin.com.br [200.225.63.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id 060C243D5E for ; Tue, 13 Apr 2004 14:16:22 -0700 (PDT) (envelope-from mpsouza@centroin.com.br) Received: from hypselo.centroin.com.br (hypselo.centroin.com.br [200.225.63.1])i3DLDFX4024180; Tue, 13 Apr 2004 18:13:15 -0300 (EST) Date: Tue, 13 Apr 2004 18:13:15 -0300 (EST) From: Marcelo Souza To: Remko Lodder In-Reply-To: <407C5430.2090002@elvandar.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org 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 21:16:24 -0000 Hi, On Tue, 13 Apr 2004, Remko Lodder wrote: |> |> 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' | |"remote execute programs" why? cant you locally run them and fetch them |with a dedicated lowerlevel account? Use my example above, supose you need to sync passwd between two hosts, using an script via cron. Even if you tar/chown it and copy with low level user, you will need to regenerate the passwd. - Marcelo