1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
|
<!--startcut ==============================================-->
<!-- *** BEGIN HTML header *** -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD>
<META NAME="generator" CONTENT="lgazmail v1.4F.y">
<TITLE>The Answer Gang 84: Need help with ftp</TITLE>
</HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#0000AF"
ALINK="#FF0000">
<!-- *** END HTML header *** -->
<!-- begin 3 -->
<H3 align="left"><img src="../../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Need help with ftp</H3>
<p><strong>From Carolyn
</strong></p>
<p align="right"><strong>Answered By Dan Wilder, Ben Okopnik, Rick Moen
</strong></p>
<blockquote><em><font color="#000066">This originally arrived with an automated confidentiality note. She
later responded into the thread, so I assume she knows this is a
webzine, but I have kept her anonymous other than by first name.
</font></em></blockquote>
<blockquote><em><font color="#000066">I remind people that since the only pay we get is in sharing the
information, to please specify that readers of the worldwide
<EM>Linux Gazette</EM> are the intended audience, which usually satisfies
such attachments.
-- Heather</font></em></blockquote>
<P><STRONG>
<IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I am an AIX administrator who has been made responsible for several
preconfigured Linux servers. I know little or nothing about Linux.
</STRONG></P>
<P><STRONG>
Situation: I need to be able to ftp a virus .dat file nightly to the Linux
machines.
</STRONG></P>
<P><STRONG>
Info: All are running Linux v7 and using xinetd. FTP does not appear to be
installed on the systems.
</STRONG></P>
<P><STRONG>
Questions:
</STRONG></P>
<P><STRONG><BLOCKQuote>
What is wu-ftp? I see it referenced in many docs on the ftp subject.
</BLOCKQuote></STRONG></P>
<P><STRONG>
Which daemon should I be using ftpd or wu-ftpd & why?
</STRONG></P>
<P><STRONG>
Where can I find the downloads for the appropriate daemon?
</STRONG></P>
<P><STRONG>
Once installed, how do I configure a service file for the xinetd daemon?
</STRONG></P>
<P><STRONG>
Thanks in advance for any help you can give...
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Dan]
What Linux distribution are you running? For example, is it
<A HREF="http://www.redhat.com/">Red Hat</A>, <A HREF="http://www.debian.org/">Debian</A>, <A HREF="http://www.suse.com/">SuSE</A>,
</blockQuote>
<P><STRONG>
<IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
How can I tell that??
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Dan]
If the systems have monitors attached, take a look at the login screen
or prompt. There'll be some clue there, if it hasn't been removed by a
previous sysadmin.
</blockQuote>
<blockQuote>
If not, and if you can ssh or telnet in, look at the welcome message.
If it doesn't ring any bells, post it.
</blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [JimD]
In most cases you can run the following command to find out
your Linux distribution name and version with the following command:
</blockQuote>
<blockquote><code><font color="#000033"><br> echo /etc/*_ver* /etc/*-rel*; cat /etc/*_ver* /etc/*-rel*
</font></code></blockquote>
<blockQuote>
... Red Hat derivatives and other RPM bases systems usually have a
file named something-release (RedHat-release, SuSE-release, etc)
in <TT>/etc.</TT> Debian based systems have a file named <TT>/etc/debian_version</TT>
(Progeny, <A HREF="http://www.libranet.com/">LibraNet</A>, etc might namem it <TT>/etc/progeny_version</TT>, etc).
</blockQuote>
<blockQuote>
As for your original question, regarding automatically moving files
to these systems. I prefer scp (a part of the OpenSSH package
at: <A HREF="http://www.openssh.org"
>http://www.openssh.org</A> ). rsync (by the author Samba at:
<A HREF="http://www.samba.org/rsync"
>http://www.samba.org/rsync</A> ) can also transparently use an ssh
tunnel. rsync also has the distinct advantage in that it can
efficiently determine which files, and portions of files, to transfer
(for minimal bandwidth utilization).
</blockQuote>
<blockQuote>
The advantage of using ssh (in both cases) is that you can configure
these systems for reasonably secure client server access using the
public keys that ssh supports.
</blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Dan]
I ask because there may be ftp packages installed or available,
and your least-hassle option is to use a pre-built package.
</blockQuote>
<blockQuote>
How and where you get that will depend on which distribution
you're running.
</blockQuote>
<blockQuote>
If you're comfortable building from source, that's an option too.
</blockQuote>
<blockQuote>
My own favorite du jour is pureftpd:
</blockQuote>
<blockQuote><BLOCKQuote>
<A HREF="http://www.pureftpd.org"
>http://www.pureftpd.org</A>
</BLOCKQuote></blockQuote>
<blockQuote>
pre-built binaries are available there for SuSE, Mandrake,
Polish, Stampede, <A HREF="http://www.slackware.org/">Slackware</A>, Multilinux, Sorcerer, Gentoo,
and there are links for binaries for several other
UNIX-y OSs.
</blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Me, I'm a real "oftpd" fan, at least for "read-only" access. It's nicely
secure (lots of code reviews), tiny (easily fits on a floppy - including
source, docs, etc.), and builds on pretty much every Unix out there.
</blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Rick]
It's amusing to see everyone listing my personal favourite choices. In
case it helps, I maintain a list of all known ftp daemons for *ix, at
<A HREF="http://linuxmafia.com/pub/linux/security/ftp-daemons"
>http://linuxmafia.com/pub/linux/security/ftp-daemons</A>
</blockQuote>
<blockQuote>
I think one could make a case for any of these:
</blockQuote>
<blockquote><em><font color="#000033"><br>aftpd (Ranum's version), but only on *BSD
<br>Libra FTP Server
<br>oftpd
<br>Pure-FTPd
<br>vs-ftpd
</font></em></blockquote>
<blockQuote>
Also worth looking into:
</blockQuote>
<blockquote><em><font color="#000033"><br>bftpd
<br>ginseng-ftpd
<br>hftpd
<br>lukemftpd (portable edition)
<br>Twoftpd & twoftpd-anon
</font></em></blockquote>
<blockQuote><DL><DT>
Also possibly of interest:
<DD><A HREF="http://linuxmafia.com/~rick/linux-info/ftp-justification"
>http://linuxmafia.com/~rick/linux-info/ftp-justification</A>
</DL></blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
<laugh> Now that you've reminded me, that's where I got the original
idea to use "oftpd".
</blockQuote>
<blockquote><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Heather] My current personal favorite is muddleftpd. Nice app, very
configurable, tunable for virtual hosting and other odd things.
It's sendfile optimized (on BSD too!) and can throttle.
</blockquote>
<blockquote>I don't recall when I discovered it, but it rocks. Sadly google
would imply that its home is ancient. That's its <EM>original</EM> author.
The current maintainers are here:
<A HREF="http://www.nongnu.org/muddleftpd"
>http://www.nongnu.org/muddleftpd</A>
</blockquote>
<blockquote>This presumes, of course, that sftp or plain scp isn't able to do
what I need.
</blockquote>
<!-- end 3 -->
<P> <hr> </p>
<!-- *** BEGIN copyright *** -->
<hr>
<CENTER><SMALL><STRONG>
<h5>
<br>Copyright © 2002
<br>Copying license <A HREF="">http://www.linuxgazette.com/copying.html</A>
<BR>Published in Issue 84 of <i>Linux Gazette</i>, November 2002</H5>
</STRONG></SMALL></CENTER>
<!-- *** END copyright *** -->
<HR>
<!--startcut ======================================================= -->
<P> <hr>
<!-- begin tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::-->
<p align="center">
<table width="100%" border="0"><tr>
<td align="right" valign="center"
><IMG ALT="" SRC="../../gx/navbar/left.jpg"
WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="middle" border="0"
><A HREF="../index.html"
><IMG SRC="../../gx/navbar/toc.jpg" align="middle"
ALT="[ Table Of Contents ]" border="0"></A
><A HREF="../lg_answer.html"
><IMG SRC="../../gx/dennis/answertoc.jpg" align="middle"
ALT="[ Answer Guy Current Index ]" border="0"></A></td>
<td align="center" valign="center"><A HREF="../lg_answer.html#greeting"><img align="middle"
src="../../gx/dennis/smily.gif" alt="greetings" border="0"></A>
<A HREF="../tag/bios.html">Meet the Gang</A>
<A HREF="1.html">1</A>
<A HREF="2.html">2</A>
<A HREF="3.html">3</A>
<A HREF="4.html">4</A>
</td>
<td align="left" valign="center"><A HREF="../../tag/kb.html"
><IMG SRC="../../gx/dennis/answerpast.jpg" align="middle"
ALT="[ Index of Past Answers ]" border="0"></A
><IMG ALT="" SRC="../../gx/navbar/right.jpg" align="middle"
WIDTH="14" HEIGHT="45" BORDER="0"></td></tr></table>
</p>
<!-- end tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::::-->
<!--endcut ========================================================= -->
<P> <hr>
<!--startcut ======================================================= -->
<CENTER>
<!-- *** BEGIN navbar *** -->
<!-- *** END navbar *** -->
</CENTER>
</p>
<!--endcut ========================================================= -->
<!--startcut ======================================================= -->
</BODY></HTML>
<!--endcut ========================================================= -->
|