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-24 10:20:11 PST Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed.mesh.ad.jp!logbridge.uoregon.edu!leto.backbone.ou.edu!news.nodak.edu!not-for-mail From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Newsgroups: comp.unix.tru64 Subject: Re: Restricting ftp Date: 24 Jan 2001 18:10:26 GMT Organization: North Dakota Higher Education Computing Network (NDHECN) Message-ID: <94n5qi$55r$3@news.ndsu.nodak.edu> References: <94msom$7ge$1@nnrp1.deja.com> NNTP-Posting-Host: dogbert.cc.ndsu.nodak.edu Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: news.ndsu.nodak.edu 980359826 5307 134.129.106.23 (24 Jan 2001 18:10:26 GMT) X-Complaints-To: abuse@nodak.edu NNTP-Posting-Date: 24 Jan 2001 18:10:26 GMT X-Newsreader: trn 4.0-test74 (May 26, 2000) Originator: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Xref: supernews.google.com comp.unix.tru64:1554 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