From owner-freebsd-questions@FreeBSD.ORG Thu Jun 19 17:49:54 2003 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 3CC7937B401 for ; Thu, 19 Jun 2003 17:49:54 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 419F343FAF for ; Thu, 19 Jun 2003 17:49:52 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id BFC2C5269E; Fri, 20 Jun 2003 10:20:25 +0930 (CST) Date: Fri, 20 Jun 2003 10:20:25 +0930 From: Greg 'groggy' Lehey To: Andre Message-ID: <20030620005025.GS93137@wantadilla.lemis.com> References: <003701c33719$470beda0$0f00a8c0@yz123nn123zm128> <003301c33719$4533f950$0f00a8c0@yz123nn123zm128> <002501c33719$1fddb740$0f00a8c0@yz123nn123zm128> <002401c33719$1f9fc3e0$0f00a8c0@yz123nn123zm128> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="64qHOIbXd9REl2gx" Content-Disposition: inline In-Reply-To: <003701c33719$470beda0$0f00a8c0@yz123nn123zm128> <003301c33719$4533f950$0f00a8c0@yz123nn123zm128> <002501c33719$1fddb740$0f00a8c0@yz123nn123zm128> <002401c33719$1f9fc3e0$0f00a8c0@yz123nn123zm128> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-questions@freebsd.org Subject: Re: access symlink in ftpd?? 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: Fri, 20 Jun 2003 00:49:54 -0000 --64qHOIbXd9REl2gx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Format recovered--see http://www.lemis.com/email/email-format.html] Overlong lines. On Friday, 20 June 2003 at 12:44:13 +0200, Andre wrote: On Friday, 20 June 2003 at 12:45:27 +0200, Andre wrote: On Friday, 20 June 2003 at 12:46:56 +0200, Andre wrote: On Friday, 20 June 2003 at 12:46:59 +0200, Andre wrote: Once is enough, and this time is 10 hours in the future. > I have setup a FreeBSD box with Mysql,apache+mod_php for practical > purposes, when i want to update the webpages on the FreeBSD machine > i found it very hard to first use FTP to transfer the pages from my > windows machine, and then SSH in to the FreeBSD machine and move the > files to the documentroot. > > how do i do a symlink that points to the default ftpddir > ( /usr/home/name ) ? What's the problem? $ ln -s $documentroot ~ But that's not the real answer. If you're using ftp, you're also transferring your password in the clear. After that, you don't need ssh to access the machine; you've already compromised yourself. I use rsync for this purpose. Here's the beginning of the script: #!/bin/sh #=20 # Synchronize the web sites. #=20 RSYNC_RSH=3Dssh export RSYNC_RSH echo +++ Transferring grog rsync -Lzav --exclude=3DRCS --exclude=3Dprivate --exclude=3D"*~" ~grog/p= ublic_html/* website:htdocs/www.lemis.com/grog echo +++ Transferring www.lemis.com cd /usr/local/www/data rsync -zLtuv --exclude=3DRCS --exclude=3D"*~" --exclude=3Dauug --exclude= =3Dbookmarks.html * website:htdocs/www.lemis.com Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers --64qHOIbXd9REl2gx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+8lpRIubykFB6QiMRAjlfAJ9QJJpWGdK0wHPpbiT7pkytuMn31gCeJOrG kn/s5sy8/Qjn0FX3lI7OIgE= =1awa -----END PGP SIGNATURE----- --64qHOIbXd9REl2gx--