From: peter@abbnm.com (Peter da Silva)
Subject: Re: FTP
Date: 23 Jun 2002 00:45:08 GMT [thread overview]
Message-ID: <af35mk$kc5@web.eng.baileynm.com> (raw)
In-Reply-To: cafabb48.0206220035.74a0e225@posting.google.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.
--
I've seen things you people can't imagine. Chimneysweeps on fire over the roofs
of London. I've watched kite-strings glitter in the sun at Hyde Park Gate. All
these things will be lost in time, like chalk-paintings in the rain. `-_-'
Time for your nap. | Peter da Silva | Har du kramat din varg, idag? 'U`
next prev parent reply other threads:[~2002-06-23 0:45 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 ` Peter da Silva [this message]
2002-06-23 12:31 ` FTP Brahim
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