Subject: Re: rdist Distfile
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 06/11/2002 22:38:24
On Tue, Jun 11, 2002 at 05:31:28PM +0100, Patrick Welche wrote:
> Do any of you make use of /etc/Distfile?
> 
> The daily script executes rdist -f /etc/Distfile if run_rdist=yes and said
> file exists, as root? => the other computer being rdist'd to needs a .rhosts
> for root? (bad) The way around this is to set RCMD_CMD=ssh, and use
> authorized_keys, but still for root => you must set PermitRootLogin yes ?

> 
> I'm not sure of these steps, so is that the picture? Should we invent a
> rdist pseudo-user, and su -c rdist rdist -f /etc/Distfile in /etc/daily,
> creating a .ssh/authorized_keys for user rdist?

Basically rdist is for uploading files to the remote host. The usage
I can see is to sync workstation binaries and/or configs from a master
server. so rdist has to run as root anyway.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--