Hi,

Otto Moerbeek <[EMAIL PROTECTED]> wrote: 
> On Fri, 8 Dec 2006, Sebastian Reitenbach wrote:
> 
> > Hi all,
> > 
> > I try to setup the ftpd and to have chrooted users.
> > 
> > 1. according to the ftpd man page, the users are in the password database,
have
> > a password 
> >    and ksh as shell
> > 2. their login name is not in /etc/ftpusers
> > 3. their login name is in /etc/ftpchroot
> > 
> > 
> > when I start the ftpd with -US
> > the users can login but they are not chrooted
> 
> What is the user's home dir? How do you test if the user is chrooted or not?
the home directory of the user is /home/ftp_user

I test the chroot by just ftp to the host, so I am in my home directory, when I
then cd ..
I am in /home, therefore not chrooted.


> > 
> > how do I define the ftp-chroot variable in login.conf, or am I missing
something
> > else?
> 
> If the user is in /etc/ftpchroot, there's no need to set ftp-chroot.
I thought that, after reading ftpd(8), and therefore I have the user in
/etc/ftpchroot.

I have the same problem on two servers, OpenBSD 4.0 and 3.9.

I prevent the ftp users from logging in via ssh via the ssh config, the ftp
users are all 
in group _ftp, and this group is disallowed in /etc/ssh/sshd_config for login,
but I doubt 
that this will interfere with the ftpd.

kind regards
Sebastian

Reply via email to