Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: bmo@xs4all.nl (Brahim)
Subject: Re: FTP
Date: 23 Jun 2002 05:31:33 -0700	[thread overview]
Message-ID: <cafabb48.0206230431.15a644a0@posting.google.com> (raw)
In-Reply-To: af35mk$kc5@web.eng.baileynm.com

peter@abbnm.com (Peter da Silva) wrote in message news:<af35mk$kc5@web.eng.baileynm.com>...
> In article <cafabb48.0206220035.74a0e225@posting.google.com>,
> Brahim <bmo@xs4all.nl> wrote:
> > We want that user to just pick up some files in his homedirectory
> > /var/appl/logdir and not to be allowed snooping around on the system.
> 
> Run the ftpd in a chrooted environment:
> 
> First, in inetd.conf, replace "ftpd" with "chroot /var/jail/logdir /usr/sbin/ftpd".
> 
> ftp stream tcp nowait root /usr/sbin/chroot chroot /var/jail/logdir /usr/sbin/ftpd
> 
> Then in /var/jail, create a "mini unix" environment: you'll need to
> duplicate /etc/passwd, /bin/ls, and of course /usr/sbin/ftpd.
> 
> You can now remove all the other users from passwd, and change his home
> directory to "/logdir".

> 
> Now when ftpd runs all it can see is the contents of /var/jail.
> 
> You can do this with other applications, including telnet, if you want to
> restrict access to specific files.


Thanks, excellent help, thank you.


  reply	other threads:[~2002-06-23 12:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-22  8:35 FTP Brahim
2002-06-22 12:58 ` FTP Kjell Andresen
2002-06-23 12:30   ` FTP Brahim
2002-06-23  0:45 ` FTP Peter da Silva
2002-06-23 12:31   ` Brahim [this message]
2003-02-14 20:19   ` FTP hgabel
2003-02-16 16:04     ` FTP Nico Kadel-Garcia
  -- strict thread matches above, loose matches on Subject: below --
2001-01-25 15:14 FTP Sylvie en Stefan (Functionele MRI)
2001-01-25 21:10 ` FTP peter
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