From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f00f09d032ce12e2 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-06-23 05:31:34 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: bmo@xs4all.nl (Brahim) Newsgroups: comp.unix.tru64 Subject: Re: FTP Date: 23 Jun 2002 05:31:33 -0700 Organization: http://groups.google.com/ Message-ID: References: NNTP-Posting-Host: 213.84.219.232 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1024835494 17365 127.0.0.1 (23 Jun 2002 12:31:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 23 Jun 2002 12:31:34 GMT Xref: archiver1.google.com comp.unix.tru64:7981 peter@abbnm.com (Peter da Silva) wrote in message news:... > In article , > Brahim 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.