From: Cooper, Keith (kcooper@SELFREGIONAL.ORG)
Date: Mon Mar 10 2003 - 13:18:02 EST
So any time I give a fully qualified path and file name, it is going to
put the file in same directory name on the receiving server as
opposed to my local directory that I was in, when I entered FTP.
Thanks for the reply.
Keith
Keith Cooper
Unix Administrator
Self Regional Healthcare
Greenwood, SC USA
-----Original Message-----
From: Holger.VanKoll@SWISSCOM.COM [mailto:Holger.VanKoll@SWISSCOM.COM]
Sent: Monday, March 10, 2003 12:56 PM
To: aix-l@Princeton.EDU
Subject: Re: AIX 4.3.3 FTP Question/Bug? overwrote /etc/passwd
this works as designed
you have to
cd /
ftp yourhost
cd /etc
get passwd
this will put passwd in /
-----Original Message-----
From: Cooper, Keith [mailto:kcooper@SELFREGIONAL.ORG]
Sent: Monday, March 10, 2003 6:45 PM
To: aix-l@Princeton.EDU
Subject: AIX 4.3.3 FTP Question/Bug? overwrote /etc/passwd
Afternoon guru's.
Just got over a big problem here and wanted some thoughts as to
if this the way it should work or not.
I have two AIX 4.3.3. machines. I needed to copy the
/etc/passwd file from Machine A to Machine B, but in to a different
directory on Machine B.
My exact steps were (and I have verified this with some other
test ftp's).
On Machine B:
cd /
ftp Machine A
login as root.
Enter root password.
pwd
system replied "/"
GET /etc/passwd ( the following is a
mock up of what I rec'd when I did the ftp - this was from another test
file to prove what happened")
200 PORT command successful.
150 Opening data connection for /etc/passwd (750 bytes).
226 Transfer complete.
750 bytes received in 0.000277 seconds (186.9 Kbytes/s)
local: /etc/passwd remote: /etc/passwd
ftp> quit
221 Goodbye.
Shouldn't the file have gone to the / directory? I had to grab
a copy of the /etc/passwd on Machine A's last mksysb to get people back
on the
System. If this is by design, I have found a new respect for
FTP! From now on I believe I will start giving FTP a target filename as
well as the source.
Much thanks,
Keith C.
Keith Cooper
Unix Administrator
Self Regional Healthcare
Greenwood, SC USA
IBM AIX System Admin 4.3/System User, A+, Linux+,
Network+, I-Net+ Certified, Compaq APS Certified - Notebooks &
Desktop/Workstations.
This electronic message transmission, including any attachments,
contains information from Self Regional Healthcare which may be
confidential or privileged. The information is intended to be for the
use of the individual or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited.
If you have received this electronic transmission in error,
please notify the sender immediately by a "reply to sender only" message
and destroy all electronic and hard copies of the communication,
including attachments.
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:38 EDT