I had managed to set up an ftp server on my laptop running OpenSuse 11.1, runnning behind a router. Even got it working, with a chroot jail for users and all.
I fiddled with something (permissions–I was trying to make the files in the ftp users folders visible to me outside of su through dolphin). That messed things up, so I redid all the users, and redid the entire ftp configuration, using (as far as I know), the exact same steps as before, and I can no longer get the ftp server to work–I keep getting the 500 error, and it doesn’t seem to go away, no matter what I try.
Herewith my vsftpd.conf:
chroot_local_user=YES
ftpd_banner=Sawubona, hujambo, ola, goeie dag
idle_session_timeout=900
local_enable=YES
log_ftp_protocol=NO
max_clients=10
max_per_ip=3
pasv_enable=YES
ssl_sslv2=NO
ssl_sslv3=NO
ssl_tlsv1=YES
write_enable=YES
local_root=/home/ftp/$USER
For my user1 (1002), I have set this user up in Yast - user and group management to be a member of the group
ftp-users (1001)
with a home directory of home/ftp/user1
I have checked in /etc/passwd
user1:x:1002:1001::/home/ftp/user1:/bin/bash
and with ls -l /home/ftp:
drwxr-xr-x 2 user1 ftp-users 4096 2010-02-11 22:40 user1
to make sure that the ownership for this directory match, which they do.
I thought that the problem could have been that I had tried to set up the ftp location away from /srv/ftp/, but when I set it up again back here, where I set up a /user1 sub-folder (as well as a /user2 folder), I was still getting the same problem.
I am not sure what else to do now, except maybe to kill the users and restart with everything.
Any help with this would be much appreciated.
Thanks.