From owner-freebsd-ports@FreeBSD.ORG Thu Aug 21 12:37:25 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8940516A4BF for ; Thu, 21 Aug 2003 12:37:25 -0700 (PDT) Received: from lakemtao05.cox.net (lakemtao05.cox.net [68.1.17.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04BA243FDF for ; Thu, 21 Aug 2003 12:37:19 -0700 (PDT) (envelope-from freebsd@critesclan.com) Received: from helaman ([68.107.163.57]) by lakemtao05.cox.net (InterMail vM.5.01.06.04 201-253-122-130-104-20030726) with SMTP id <20030821193718.SECL13237.lakemtao05.cox.net@helaman> for ; Thu, 21 Aug 2003 15:37:18 -0400 From: To: Date: Thu, 21 Aug 2003 14:37:13 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <200308211830.h7LIUl9J065062@8ball.rtp.freebsd.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: password problem with rsync X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@critesclan.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 19:37:25 -0000 Somewhere along the line, rsync quit using the --password-file=/file/with/pw option. I have not used my script in months, and now it is not working. I pulled out the part that does the rsync, and here it is: ------------------------------------------------------------ #!/usr/local/bin/bash RSYNC_PROXY=873 passwordfile=/path/to/file/.password RSYNC_PASSWORD=`cat $passwordfile` echo "=-=-=-=-=" echo "[$RSYNC_PROXY] [$passwordfile] [$RSYNC_PASSWORD]" echo "=-=-=-=-=" rsync \ --password-file="$passwordfile" \ --archive \ --exclude="man" \ --exclude="batchftp*" \ --exclude="packages*" \ --delete \ --delete-excluded \ --perms \ --stats \ --verbose \ /source-dir-1 \ /source-dir-2 \ login@hostname:/target/dir ------------------------------------------------------------ The script works, except I continue to get the password prompt. I have tried it: * with/without "-e ssh", * with/without /source-dir-2, * as root and as myself, * moving the "--password-file" line to the first, last, middle, * both "--password-file=whatever" and "--password-file whatever" options, * removing the "--password-file" so the "RSYNC_PASSWORD" env variable work, as well as several other options. It still asks me for the password. I stay up-to-date with CVSup (tag=.), including the re-build/install, and have kept the ports as current as possible. rsync is 2.5.6_1... So was there some change in the port in the previous, say 9 months that would have chance this behavior? I don't need the daemon running, so I don't have the rsync.conf file set up -- but I didn't back when it was working. Any clues? Lee