FTP Troubleshooting

From WL-HDD Wiki

Jump to: navigation, search
WL-HDD Contents
What is the WL-HDD
Features
Pro's/con's
Reviews
Hacking
Inserting the HDD
Hacking Guides
Basic setup guides
Packages guides
Requests
Troubleshooting
This Wiki
Credits
Editing help
Contact Me

Contents

[edit] Some common Problems with VSFTPD

  • Problem: When Logging into VSFTPD from another computer, I receive the error:
500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/usr/share/empty 

Reply from: Jono 16:31, 23 January 2006 (GMT)

Here are some common solutions...

[edit] Secure_Chroot_Dir

Add this line to the bottom of /opt/etc/vsftpd.conf

secure_chroot_dir=/opt/usr/share/empty

and make that directory:

mkdir /opt/usr/share/empty

[edit] FTP User

Also, check /opt/etc/init.d/vsftp check this line is included:

nano /opt/etc/init.d/vsftp 
user = admin

The file should look like this overall:

# description: The vsftpd FTP server serves FTP connections.
# it uses normal, unencrypted usernames and passwords for auth
service ftp
{
disable = no
socket_type = stream
user = admin
server = /opt/sbin/vsftpd
server_args = /opt/etc/vsftpd.conf
wait = no
nice = 10
only_from = 0.0.0.0/0
}

Change the user 'admin' if you have changed any usernames on the WL-HDD (it is the username you use to login to the web interface!).

Also, if you have anonymous ftp enabled, you need to add the user ftp to your passwd file, see the Adding Users guide

[edit] Disable Anonymous FTP

Even better, would be to disable anonymous FTP:

nano /opt/etc/vsftpd.conf

change

anonymous_enable=YES

to

anonymous_enable=NO

Hope this helps?

Personal tools