From owner-freebsd-isp Thu May 2 04:03:10 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id EAA16152 for isp-outgoing; Thu, 2 May 1996 04:03:10 -0700 (PDT) Received: from edna.bus.net (edna.bus.net [207.41.24.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id EAA16139 for ; Thu, 2 May 1996 04:03:08 -0700 (PDT) Received: (from chuck@localhost) by edna.bus.net (8.6.12/8.6.12) id HAA02414; Thu, 2 May 1996 07:02:06 -0400 Date: Thu, 2 May 1996 07:02:06 -0400 (EDT) From: "Chuck O'Donnell" To: Jeff Hupp cc: freebsd-isp@freebsd.org Subject: Re: rdist In-Reply-To: <199605020717.CAA06704@black.gensys.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 2 May 1996, Jeff Hupp wrote: > > > > Has anyone gotten rdist to run properly from cron? I keep getting > > `permission denied' since cron runs as root. Suggestions? > > > > Create an 'rdist user.' Set that user's shell to the script you > want to do the rdist work. Run a script from cron that does an su to > that users. Works like a champ. Thanks Jeff. I may have been ambiguous here; everything works on the local machine, the `permission denied' is coming from the remote machine. rdist(1) starts from cron and reads /etc/Distfile but the remote machine refuses the connection since the user is root. The work that is being done requires root access (copying system files, restarting daemons, etc). The same behavior can be seen if you do a `rcp /etc/aliases rem:/etc/aliases' as root. root owns the files on both machines, but the connection is refused to the superuser. According to ruserok(3), the /etc/hosts.equiv file is ignored when the remote user is superuser. Thanks, Chuck