From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,de2487a3bc969c83,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-02-14 12:51:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!news.usenetgateway.com!not-for-mail From: hgabel Newsgroups: comp.unix.tru64 Subject: Re: FTP Date: Fri, 14 Feb 2003 20:19:53 +0000 Organization: dBforums Sender: hgabel Message-ID: <2531496.1045253993@dbforums.com> References: NNTP-Posting-Host: p-004.newsdawg.com User-Agent: dBforums X-Original-NNTP-Posting-Host: dbforums.com X-Original-Trace: 14 Feb 2003 15:26:30 -0500, dbforums.com X-Authenticated-User: paul Xref: archiver1.google.com comp.unix.tru64:9544 Originally posted by Peter Da Silva > 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. > > -- > 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