Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 1997 22:42:10 -0500 (CDT)
From:      Susie Ward <sward@voltage.net>
To:        questions@freebsd.org, isp@freebsd.org
Subject:   Re: Hiding user directories without breaking ftp?
Message-ID:  <Pine.BSF.3.95q.970912224037.1641A-100000@voltage.net>
In-Reply-To: <199709122324.NAA07029@caliban.dihelix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> 
> 
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970912224037.1641A-100000>