* Restricting ftp
@ 2001-01-24 15:35 stuart_archer
2001-01-24 18:10 ` Tim Mooney
0 siblings, 1 reply; 3+ messages in thread
From: stuart_archer @ 2001-01-24 15:35 UTC (permalink / raw)
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?
Thanks,
Stu.
Sent via Deja.com
http://www.deja.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Restricting ftp
2001-01-24 15:35 Restricting ftp stuart_archer
@ 2001-01-24 18:10 ` Tim Mooney
2001-01-25 13:46 ` patrick_bateman
0 siblings, 1 reply; 3+ messages in thread
From: Tim Mooney @ 2001-01-24 18:10 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Restricting ftp
2001-01-24 18:10 ` Tim Mooney
@ 2001-01-25 13:46 ` patrick_bateman
0 siblings, 0 replies; 3+ messages in thread
From: patrick_bateman @ 2001-01-25 13:46 UTC (permalink / raw)
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-01-25 13:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-24 15:35 Restricting ftp stuart_archer
2001-01-24 18:10 ` Tim Mooney
2001-01-25 13:46 ` patrick_bateman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox