From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,b2589dd57bd6d955 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-01-25 06:00:07 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: patrick_bateman@my-deja.com Newsgroups: comp.unix.tru64 Subject: Re: Restricting ftp Date: Thu, 25 Jan 2001 13:46:33 GMT Organization: Deja.com Message-ID: <94pann$b93$1@nnrp1.deja.com> References: <94msom$7ge$1@nnrp1.deja.com> <94n5qi$55r$3@news.ndsu.nodak.edu> NNTP-Posting-Host: 213.38.240.234 X-Article-Creation-Date: Thu Jan 25 13:46:33 2001 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT) X-Http-Proxy: 1.1 x62.deja.com:80 (Squid/1.1.22) for client 213.38.240.234 X-MyDeja-Info: XMYDJUIDpatrick_bateman Xref: supernews.google.com comp.unix.tru64:1567 In article <94n5qi$55r$3@news.ndsu.nodak.edu>, mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) wrote: > In article <94msom$7ge$1@nnrp1.deja.com>, wrote: > > Hi all, > > I have a user account that I require to upload files via ftp to a > > directory, but I only want it to have access to this directory, sort of > > like an Rsh for ftp. (incidentally even if I change the user shell ro > > Rsh it still has full file system access via ftp). Anyone got any ideas? > > That's because ftpd doesn't invoke a shell, it's doing its own thing. > > You have two (possibly three) options (that I'm aware of): > > 1) rather than having the user upload files to a real account, have the > user ftp in anonymously (this requires that you've done the anonymous ftp > setup on your machine) but provide a place for the user to put the files. > This is commonly done via a writeable > > /pub/hidden/some-directory-name-thats-hard-to-guess > > that "only" the appropriate person knows about. Since they're coming > in anonymously, they only have access to what's in your anonymous ftp > area. > > 2) Use a non-stock ftpd that has better/stronger/more configurable support > for captive environments. wu-ftpd and proftpd are the two common ones, > I would recommend proftpd over wu-ftpd. > > 3) Some stock vendor ftp daemons support forcing someone into a chroot ()'ed > environment if the user's password file home directory entry is constructed > in some odd "magic" way, such as > > /path/to/foo/./foo > > I'm not sure if the Compaq ftpd supports this, but if it does it should be > documented in the ftpd man page (I haven't looked). > > Tim > -- > Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu > Information Technology Services (701) 231-1076 (Voice) > Room 242-J1, IACC Building (701) 231-8541 (Fax) > North Dakota State University, Fargo, ND 58105-5164 > Sent via Deja.com http://www.deja.com/