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-22 20:28:58 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!news-toy.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!news-hog.berkeley.edu!ucberkeley!newsfeed.stanford.edu!news-proxy.baileynm.com!web.eng.baileynm.com!not-for-mail From: peter@abbnm.com (Peter da Silva) Newsgroups: comp.unix.tru64 Subject: Re: FTP Date: 23 Jun 2002 00:45:08 GMT Organization: ABB Network Management Message-ID: References: NNTP-Posting-Host: grendel.eng.baileynm.com Xref: archiver1.google.com comp.unix.tru64:7979 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`