Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
From: SIMON JAMES FERRETT <c9108932@sol.newcastle.edu.au>
Subject: ftpd-term ftpd with term mods
Date: 17 Sep 1993 16:49:22 GMT	[thread overview]
Message-ID: <27cpqi$o6i@samba.oit.unc.edu> (raw)

hello - I've just finished modifying both the shadowed and non shadow
versions of ftpd-diku so that they use term calls to create data sockets.
Everything seems to work fine (except I havent implemented passive mode
connections yet - stnadby) so I thought I might send it out so I could
get some feedback.  ftpd-term will allow your term box to have incoming
ftp connections.
Currently its a sunsite.unc.edu /pub/Linux/Incoming

ftpd-term.lsm:

Title        =FTPD for term.
Version      =1.0
Desc1        =A modified ftpd that uses term for data connections
Desc2        =source for shadow and non shadow passwords
Desc3        =currently does not support PASSIVE mode transfers
Desc4        =but I'm working on it.
Author       =Simon Ferrett (mods to orig. ftpd-diku)
AuthorEmail  =c9108932@cs.newcastle.edu.au
Site1        =sunsite.unc.edu
Path1        =/pub/Linux/Incoming/
File1        =ftpd-term.tar.gz
FileSize1    =103916
Required1    =requires term client.a and client.h
Required2    =shadow password requires shadow 3.2.2
Required3    =valid.o and header files pwauth.h
CopyPolicy1  =freely distributable
Keywords     =term ftpd
Comment1     =This code hasnt been well tested, but works for
Comment2     =me (and a few other people) so I thoguht I might
Comment3     =as well distribute it.
Comment4     =look out for a version that supports PASV
Entered      =17 Sep 1993
EnteredBy    =Simon Ferrett
CheckedEmail =c9108932@cs.newcastle.edu.au

README.term:
This package is a conglomeraton of ftpd-diku sources with
and also without the patches for shadowed passwords.
Both sources have been modified to use term calls rather
than inet calls to create data sockets, and as such should
allow you to enable incoming ftp connections via a tredir'd
link.  The limitation being that ftpd-term cannot support
passive mode ftp connections, which basically means it wont
work for people using the termftp or ncftp-term clients wanting
to connect.  This is a bit of a bummer, but really cant be
helped.

how?

firstly, decide wether you use shadowed passwords and
cp the appropriate Makefile.xxxx to Makefile

Make sure you have term's client.a and client.h somewhere
and that the directory where they reside is correctly
stated in the Makefile.

If you are using shadowed passwords, you also need one of
the shadow 3.2.2 object files 'valid.o' so make sure the
path to where that is, is also correctly stated in the
Makefile.

ok apart from these things, the setup is pretty much
exactly the same as for normal ftpd, so I shall leave
you to your own devices as far as setting up the package
goes..

how to enable via tredir?

remote% tredir {some-local-port} localhost:21

will pretty much have you setup & ready to go, and
someone can then telnet to your term machine by:

ftp remote.machine.name some-local-port


*** ANONYMOUS FTP

Because anonymous ftp does a chroot to the ftp users home directory,
some problems arise when ftpd-term tries to open the term socket and
cant find it due to the root being changed.  To overcome this, do the
following..

work out where term puts its socket file ('socket' is the filename)
- usually in some users directory, possibly roots. eg:
/home/root/.term/socket

if the ftp account's home directory is /home/ftp
then we need to make a directory
/home/ftp/home/root/.term
where /home/ftp/home and /home/ftp/home/root are mode 710 (rwx--x---)
and whos ownership is root.{group of ftp user} (usually 'other')

then, *after* term is up and running, make a hardlink of the socket in the
new directory:
ln -f /home/root/.term/socket /home/ftp/home/root/.term/socket

and bob's yer uncle. (hopefully)

IF, however, bob isnt your uncle and things become hasslesome and you
cant work out what the hell Im blabbing on about, please feel free to
email me, or find me on irc (nick: Mcv) and have a yarn.

Comments/etc greatly appreciated.

-- 
c9108932@cs.newcastle.edu.au - Simon Ferrett
Due to technical difficuties, we are unable to bring you your
regularly scheduled .signature - normal transmission will resume
as soon as possible...

-- 
Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu


                 reply	other threads:[~1993-09-17 16:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox