From: Mark Hobley on
I am running Debian (Testing/Lenny), and I have installed vsftpd, and I
have a problem when I login as an anonymous user:

ftp neptune

Connected to neptune.markhobley.yi.org.
220 Welcome to Mark Hobley's FTP server.
Name (neptune:mark): anonymous
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/ftp
Login failed.

I can however login as a normal user, and operation is normal.

My /etc/inetd.conf file contains a configuration entry as follows:

ftp stream tcp nowait root /usr/sbin/vsftpd vsftpd

My /etc/vsftpd.conf file contains:

listen=NO
anonymous_enable=YES
local_enable=YES
anon_root=/volumes/vol3a/ftpd
nopriv_user=ftpd
ftpd_banner=Welcome to Mark Hobley's FTP server.
chroot_local_user=YES
secure_chroot_dir=/empty
pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/vsusers.lst

My /etc/passwd file contains an entry:

ftpd:x:330:330::/home/ftpd:/bin/false

Why do I the following error?

500 OOPS: cannot change directory:/home/ftp

Why is there a reference of a switch to /home/ftp? This directory does
not exist, only /home/ftpd exists. Is it the client doing this?

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

From: Mark Hobley on
Mark Hobley <markhobley(a)hotpop.donottypethisbit.com> wrote:

> 500 OOPS: cannot change directory:/home/ftp
> Login failed.

I managed to fix this:

# nopriv_user=dummy
ftp_username=ftpd

Cheers,

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/