Skip site navigation (1)Skip section navigation (2)
Date:      14 Dec 1999 23:20:22 +0100
From:      "Robin S. Socha" <robin@socha.net>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: command abt 'ftp' and 'cp'
Message-ID:  <deathsquad.m3ln6xf9ll.fsf@socha.net>
In-Reply-To: Peter Kok's message of "Tue, 14 Dec 1999 00:33:41 %2B0800"
References:  <38551FE5.C51CB20@stlinux.ouhk.edu.hk>

next in thread | previous in thread | raw e-mail | index | archive | help
* Peter Kok <cckok00@stlinux.ouhk.edu.hk> 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 <http://socha.net/>;


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?deathsquad.m3ln6xf9ll.fsf>