problem to chroot ftp users

2006-12-08 Thread Sebastian Reitenbach
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 use

Re: problem to chroot ftp users

2006-12-08 Thread Joel Goguen
Add the usernames to /etc/ftpchroot and the user will be chrooted when they login with FTP. If you don't want them to have shell access, add /usr/bin/false to /etc/shells and change the users' shell to /usr/bin/false. That will allow chrooted FTP access and deny shell access. You could also set

Re: problem to chroot ftp users

2006-12-08 Thread Otto Moerbeek
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 lo

Re: problem to chroot ftp users

2006-12-08 Thread Sebastian Reitenbach
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 she

Re: problem to chroot ftp users

2006-12-08 Thread Joel Goguen
On Fri, 08 Dec 2006 12:24:48 +0100, "Sebastian Reitenbach" <[EMAIL PROTECTED]> wrote: > 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 think I misunderstand you. Are you saying that you

Re: problem to chroot ftp users

2006-12-09 Thread Uwe Dippel
On Fri, 08 Dec 2006 12:24:48 +0100, Sebastian Reitenbach wrote: > I have the same problem on two servers, OpenBSD 4.0 and 3.9. And I do it on both ... ... but differently: ftpd_flags="-DllUS" Their HOME is where I want to chroot them Their shell is /usr/bin/passwd (to change the passwd and preve

Re: problem to chroot ftp users

2006-12-11 Thread Sebastian Reitenbach
Hi, thanks for your answer, but I still have no luck. > > I have the same problem on two servers, OpenBSD 4.0 and 3.9. > > And I do it on both ... > ... but differently: > > ftpd_flags="-DllUS" > Their HOME is where I want to chroot them > Their shell is /usr/bin/passwd (to change the passwd and

Re: problem to chroot ftp users

2006-12-11 Thread Sebastian Reitenbach
[EMAIL PROTECTED] wrote: > On Fri, 08 Dec 2006 12:24:48 +0100, "Sebastian Reitenbach" <[EMAIL PROTECTED]> wrote: > > 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 think I misund

Re: problem to chroot ftp users

2006-12-11 Thread Otto Moerbeek
On Mon, 11 Dec 2006, Sebastian Reitenbach wrote: > [EMAIL PROTECTED] wrote: > > On Fri, 08 Dec 2006 12:24:48 +0100, "Sebastian Reitenbach" > <[EMAIL PROTECTED]> wrote: > > > I thought that, after reading ftpd(8), and therefore I have the user in > > > /etc/ftpchroot. > > > > > > I have the same

Re: problem to chroot ftp users

2006-12-11 Thread Uwe Dippel
On Mon, 11 Dec 2006 11:57:53 +0100, Sebastian Reitenbach wrote: > thanks for your answer, but I still have no luck. > # ps ax | grep ftpd > 3534 ?? Is 0:00.00 /usr/libexec/ftpd -DllUS /usr/libexec/ftpd -DllUS checks. I don't say what you do is wrong; I don't even call it stupid; and I s

Re: problem to chroot ftp users

2006-12-11 Thread Sebastian Reitenbach
Hi, > > Hmm, look for some funny chars, missing newlines or spurious > whitespace in ftpchroot: > > vis -tl /etc/ftpchroot Thanks for the hint, I have done that, but everything looks good, tried with an empty newline at the end, and with the last user at the last line, but without a differ

Re: problem to chroot ftp users

2006-12-11 Thread Sebastian Reitenbach
Hi, > Hmm, look for some funny chars, missing newlines or spurious > whitespace in ftpchroot: > > vis -tl /etc/ftpchroot > yes, after some more fiddling, I checked again, and there were trailing whitespaces behind the user names, on both hosts. removing them, fixed the problem. I did not e