Date: Mon, 15 Sep 1997 16:39:09 +0100 From: Josef Karthauser <joe@pavilion.net> To: Susie Ward <sward@voltage.net> Cc: questions@FreeBSD.ORG, isp@FreeBSD.ORG Subject: Re: Hiding user directories without breaking ftp? Message-ID: <19970915163909.38565@pavilion.net> In-Reply-To: <Pine.BSF.3.95q.970912224037.1641A-100000@voltage.net>; from Susie Ward on Fri, Sep 12, 1997 at 10:42:10PM -0500 References: <199709122324.NAA07029@caliban.dihelix.com> <Pine.BSF.3.95q.970912224037.1641A-100000@voltage.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Or use the stock ftpd with the chroot option and INTERNAL_LS compiled in. (see man ftpd). Joe On Fri, Sep 12, 1997 at 10:42:10PM -0500, Susie Ward wrote: > Why not use wu-ftpd with the guest group, this will chroot the users into > their own home directories and they can't back out past that. I'm using > this with great success and I only hafta put /bin/ls in each users > directory. > > On Fri, 12 Sep 1997, David Langford wrote: > > I am trying to get a system so that users can't "ls" other peoples > > home directories. > > > > The current problem is that this really breaks ftpd. > > > > It doesn't affect uploading to the directory, but when a user moves to a > > subdirectory and then tries to back out, it goes all the way to the > > server root directory. > > > > > > I set the dirs up like: > > > > > > drwxr-x--x 33 root nolist /u1 > > drwxr-x--x 33 root nolist /u1/u > > drwx--x--x 3 user user /u1/u/user > > > > PWD works like this. > > > > -r-xr-sr-x 1 bin nolist /bin/pwd > > > > Since ftpd setuid's the the incoming user then the getcwd() command doesnt > > work. > > > > I would like to figure out a way for getpwd() to work but break "ls". > > > > > > Thanks, > > > > -David Langford > > sysadmin@maui.net > > > > > > -- Josef Karthauser Technical Manager Email: joe@pavilion.net Pavilion Internet plc. [Tel: +44 1273 607072 Fax: +44 1273 607073]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970915163909.38565>