From: patrick_bateman@my-deja.com
Subject: Re: Restricting ftp
Date: Thu, 25 Jan 2001 13:46:33 GMT [thread overview]
Message-ID: <94pann$b93$1@nnrp1.deja.com> (raw)
In-Reply-To: 94n5qi$55r$3@news.ndsu.nodak.edu
In article <94n5qi$55r$3@news.ndsu.nodak.edu>,
mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) wrote:
> In article <94msom$7ge$1@nnrp1.deja.com>,
<stuart_archer@hotmail.com> wrote:
> > Hi all,
> > I have a user account that I require to upload files via ftp to a
> > directory, but I only want it to have access to this directory,
sort of
> > like an Rsh for ftp. (incidentally even if I change the user shell
ro
> > Rsh it still has full file system access via ftp). Anyone got any
ideas?
>
> That's because ftpd doesn't invoke a shell, it's doing its own thing.
>
> You have two (possibly three) options (that I'm aware of):
>
> 1) rather than having the user upload files to a real account, have
the
> user ftp in anonymously (this requires that you've done the anonymous
ftp
> setup on your machine) but provide a place for the user to put the
files.
> This is commonly done via a writeable
>
> /pub/hidden/some-directory-name-thats-hard-to-guess
>
> that "only" the appropriate person knows about. Since they're coming
> in anonymously, they only have access to what's in your anonymous ftp
> area.
>
> 2) Use a non-stock ftpd that has better/stronger/more configurable
support
> for captive environments. wu-ftpd and proftpd are the two common
ones,
> I would recommend proftpd over wu-ftpd.
>
> 3) Some stock vendor ftp daemons support forcing someone into a chroot
()'ed
> environment if the user's password file home directory entry is
constructed
> in some odd "magic" way, such as
>
> /path/to/foo/./foo
>
> I'm not sure if the Compaq ftpd supports this, but if it does it
should be
> documented in the ftpd man page (I haven't looked).
>
> Tim
> --
> Tim Mooney
mooney@dogbert.cc.ndsu.NoDak.edu
> Information Technology Services (701) 231-1076 (Voice)
> Room 242-J1, IACC Building (701) 231-8541 (Fax)
> North Dakota State University, Fargo, ND 58105-5164
>
Sent via Deja.com
http://www.deja.com/
prev parent reply other threads:[~2001-01-25 13:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-24 15:35 Restricting ftp stuart_archer
2001-01-24 18:10 ` Tim Mooney
2001-01-25 13:46 ` patrick_bateman [this message]
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