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 still
do it differently:

$ cat /etc/ftpchroot | grep uwe
uwe

chpass uwe gives:
Home directory: /var/www/users/uwe
Shell: /usr/bin/passwd

and results in:

$ ftp
[...]
331 Password required for uwe.
Password:
230 User uwe logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/" is current directory.


When the user is commented out in /etc/ftpchroot, it looks like this:

$ cat /etc/ftpchroot | grep uwe
#uwe

$ ftp
[...]
331 Password required for uwe.
Password:
230 User uwe logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/var/www/users/uwe" is current directory.


[The huge majority of my users are ftp-only, some have a local logon.
I wrote a script that moves the users from here to there and there to
here; one item is adding/comment/uncomment their userid in /etc/ftpchroot.]

$ head /etc/ftpchroot
#       $OpenBSD: ftpchroot,v 1.3 1996/07/18 12:12:47 deraadt Exp $
#
# list of users (one per line) given ftp access to a chrooted area.
# read by ftpd(8).

I have no clue if this accepts a group as well ?
Just try to add a demo user and make it work for him.


Uwe

Reply via email to