From owner-freebsd-questions Tue Dec 14 14:24:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from kens.com (kens.com [129.250.30.40]) by hub.freebsd.org (Postfix) with ESMTP id 1388915254 for ; Tue, 14 Dec 1999 14:24:53 -0800 (PST) (envelope-from robin@socha.net) Received: from socha.net (IDENT:root@dialin-2-146.bl.trmd.net [212.84.201.146]) by kens.com (8.9.3/8.9.3-mod-for-majordomo) with ESMTP id RAA07101 for ; Tue, 14 Dec 1999 17:24:52 -0500 (EST) Received: (from robin@localhost) by socha.net (8.9.3/8.9.3) id XAA12096; Tue, 14 Dec 1999 23:20:23 +0100 X-Authentication-Warning: radioactive.socha.net: robin set sender to robin@socha.net using -f To: Subject: Re: command abt 'ftp' and 'cp' References: <38551FE5.C51CB20@stlinux.ouhk.edu.hk> Organization: Usenet Death Squad X-URL: X-Face: #Z}0zkbqU,m`+S)^0R[.23L-o>U{UQ|(DvIqu^Bjw:po_g9;4JnT9tbn;QX$ga/LYS From: "Robin S. Socha" Date: 14 Dec 1999 23:20:22 +0100 In-Reply-To: Peter Kok's message of "Tue, 14 Dec 1999 00:33:41 +0800" Message-ID: Lines: 21 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.2 (Hebe) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Peter Kok writes: > Hello all I would like to know: > 1/ I couldn't use ftp as login as 'root' from outside to connect > freebsd? But I could login as normal user to make connection. Both protocols transfer plain text passwords. You should at least use rsh, preferably ssh. Read man ssh-keygen to find out how to get rid of passwords for good. > 2/ How do I use 'cp' to copy the whole directory to other location. > I use 'man' to help, but I don't understand! cp -Rp has already been mentioned. It's probably even easier to use this: (cd /source/directory && tar cf - . ) | (cd /dest/directory && tar xvfp -) which will also work across partitions/disks. If you need to copy large amounts of files across a network, scp is your friend (man scp, particularly the -C option). -- Robin S. Socha To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message