Does anyone have vsftpd configured on the white light, I can login with filezilla but all the files and folders are hidden. What ftp program is used in the webadmin program, where are the config files?
if you are trying to get into all the files, try getting SFTP. then turn on your SSH access and login under root.
Thanks for the reply. I can SSH, that is not the problem. I want to use FTP, if I place a file in the folder with Filezilla I can see the file with SSH. But if I check with Filezilla I can't see the file, it is hidden.
I'm still not 100% positive if I have this correct, are you trying to ftp inside your network, or out side it? I use FTP myself, instead of SSH bacuse I've enabled SSH before and had too many people trying to hack my drive. I found out that you have to use an "active" port instead of a "passive" port. Windows default is to use Passive, so you will have to turn that off. If you don't know how, let me know.
i recently set it up myself, the config file is /opt/etc/vsftpd.conf
the webadmin gui uses another (in my opinion rather shitty ftp service) dunno which one exactly. the vsftpd.conf should look something like that:
chmod_enable=NO delete_failed_uploads=YES #port_enable=YES require_ssl_reuse=NO ssl_tlsv1=YES ssl_sslv2=NO ssl_sslv3=NO anonymous_enable=NO dirlist_enable=YES force_local_data_ssl=YES force_local_logins_ssl=YES listen=NO local_enable=YES pasv_promiscuous=YES #port_promiscuous=YES ssl_enable=YES write_enable=YES max_clients=2 max_per_ip=2 pasv_min_port=5000 pasv_max_port=5020 rsa_cert_file=/opt/etc/vsftpd.pem #cmds_allowed= cmds_denied=RMD,DELE pasv_addr_resolve=YES pasv_address=XXXyour static IP address or any address from an dyndns serviceXXX chroot_local_user=YES local_umask=022 #passwd_chroot_enable=YES xferlog_enable=YES vsftpd_log_file=/DataVolume/Download/ftpd.log
this is a rather standard config file (i could be more elegant with userlists etc) with anonymous access disabled passive mode port range from 5000 to 5020 and by default disalbed delete and remove directory commands and forced ssl for all users. a comlete guide for that config file can be read here
EDIT: it doesnt use the LISTEN mode (that means i uses less ram when not used but you'll have to put the command in init.d as described here)
ipkg will put the necessary files under /opt, and give instructions to add the following line to /etc/inetd.conf: ftp stream tcp nowait root /opt/sbin/vsftpd /opt/etc/vsftpd.conf
after that you need to set the users via ssh (first create a group, i called mine "ftpusers", the add users according to your needs)
the command for that is
adduser -G ftpusers -h /homedir you specify for that user/ username
(http://linux.die.net/man/8/adduser) notice that the useradd command doesnt work, you have to write adduser.
and be sure that you set chmod right for the files. http://ss64.com/bash/chmod.html
hope that helps
Thanks for the detailed explanation. I think something went wrong with permissions, I had created a group and user with the webadmin. I also tried the FTP from the webadmin, which is a limited version of VSFTPD, it is configured in /etc.
I have reloaded the firmware to clean up all the mess and now created a group and user via ssh. I also created a folder FTP in the shares folder and gave the group full access rights. If I have the homefolder in /etc/passwd file to /shares/FTP I get error 550 failed to change directory. If I change the homefolder to /shares I can use ftp but cannot access the FTP folder. How can I get access to the FTP folder?