Re: FYI about gnutls error -12
I thought I had it fix since my last post above, but I still can't log in via vsftpd. It says 'login incorrect'. Either the password or username is not set correctly. I am using filezilla.
I have rerun the db4.7_load to create another vsftpd_login.db. It still say the login is not correct. It has to be some setting within vsftpd. Need help.
Re: FYI about gnutls error -12
Ok. I got it to semi-work now. I can log in ftp but not ftpes. It seems now I cannot log in via ssl connection. The connection times out.
I would also like to add that, ssl connection works if I disable shorewall. I have open ports 20,21 in shorewall but it still doesn't work unless I disable it.
Re: FYI about gnutls error -12
Quote:
Originally Posted by
duceduc
Ok. I got it to semi-work now. I can log in ftp but not ftpes. It seems now I cannot log in via ssl connection. The connection times out.
I would also like to add that, ssl connection works if I disable shorewall. I have open ports 20,21 in shorewall but it still doesn't work unless I disable it.
I got it working now. See this thread.
Re: Howto: Easy FTP with vsftpd
Re: Howto: Easy FTP with vsftpd
Hi, this is my first attempt to Linux and I'm trying to set up VSFTPD on my Ubuntu 11.10 server (64 bit)
What I'm looking for is a way to have an ftp user that can only view and download files from my folder called download under /share/download
I would like to have a named user (username and password) to access this folder and this folder only. Going higher in the treeview (/share) should not be possible.
However this should only affect the ftp user. If I log on via ssh to my server I should be able to go where I want to.
I have dissabled upload.
I have dissabled annonumus login.
I have set the local_root to /share/upload
Since I'm a bit new I used this guide if you have any more questions on how I did: http://cviorel.easyblog.ro/2009/03/0...-ubuntu-linux/
But user can still brows arround on the ftp server and see all my files. How do I restrict them to this folder only? (/share/download)
BR
/Henrik
Re: Howto: Easy FTP with vsftpd
Code:
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=YES
ssl_sslv3=YES
# Filezilla uses port 21 if you don't set any port
# in Servertype "FTPES - FTP over explicit TLS/SSL"
# Port 990 is the default used for FTPS protocol.
# Uncomment it if you want/have to use port 990.
#listen_port=990
Are these necessary if I configure my client (Filezilla) to connect using SFTP instead?
Because apparently I could still connect even when I stopped VSFTPD service.
I'm assuming Ubuntu SSH is by default encrypted with snake oil certificate?
Re: Howto: Easy FTP with vsftpd
Most probably you have an error in config file. Comment all and start adding line by line.
Re: Howto: Easy FTP with vsftpd
epimeteo,
I'm new to ftp servers, and Ubuntu. I got vsftpd to install and setup with your tutorial. I am just a little confused on how to configure the users part. All I need to do is setup 2 specific users that I want to allow to login and send (upload) files to vsftpd. These will be from 2 computers on my home network only, nothing from outside the home. And I need to specify 1 particular folder for both to send the files to vsftpd on the Ubuntu computer. Actually, I want the folder to be on the 2nd drive in the Ubuntu computer, it is: /media/Drive2/FTP. I want to restrict the 2 specified users that can login and send files to vsftpd on Ubuntu to only be able to see or connect to this second drive, and the folder named FTP. I don't want to allow anonymous users to login.
Can you please explain how to do this? I'm thinking that you mean that I have to create a new file to list the new users and their passwords, and the specific drive/folder they can upload to?
Thanks in advance for anyone who can help?
Re: Howto: Easy FTP with vsftpd
Is it possible to have virtual users, but to have certain user use a different local system user?
For virtual users, we have:
/etc/vsftpd/vsftpd.conf
Code:
# Required for virtual users
local_enable=YES
guest_enable=YES
guest_username=ftp
# Home
local_root=/home/virtual/$USER
# User specific settings
user_config_dir=/etc/vsftpd/users
For individual users, we have, for example:
/etc/vsftpd/users/admin
Code:
dirlist_enable=YES
download_enable=YES
write_enable=YES
local_root=/home/admins
guest_username=admin ### this does not work
How can we make certain users be a different 'real' username on the system?
Re: Howto: Easy FTP with vsftpd
On second thought, I think it actually does work. With a catch.
If you have the global guest_username=ftp but the user-specific guest_username=admin, your ftp client will show all permissions being owned by user and group ftp, but in reality you only have the permissions for admin on the real system.
Confusing, but it works.