Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: hgabel <member25002@dbforums.com>
Subject: Re: FTP
Date: Fri, 14 Feb 2003 20:19:53 +0000	[thread overview]
Message-ID: <2531496.1045253993@dbforums.com> (raw)
In-Reply-To: af35mk$kc5@web.eng.baileynm.com


Originally posted by Peter Da Silva 
> 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`
> 

Peter - we don't want all our ftp users to have this restriction - just
one.  Is there a way to run parallel ftpd's?

--
Posted via http://dbforums.com


  parent reply	other threads:[~2003-02-14 20:19 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   ` FTP Brahim
2003-02-14 20:19   ` hgabel [this message]
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