Page 11 of 13 FirstFirst ... 910111213 LastLast
Results 101 to 110 of 125

Thread: Howto: Easy FTP with vsftpd

  1. #101
    Join Date
    Apr 2009
    Location
    Saitama, Japan
    Beans
    132
    Distro
    Ubuntu 10.04 Lucid Lynx

    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.

  2. #102
    Join Date
    Apr 2009
    Location
    Saitama, Japan
    Beans
    132
    Distro
    Ubuntu 10.04 Lucid Lynx

    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.
    Last edited by duceduc; February 14th, 2012 at 02:53 PM.

  3. #103
    Join Date
    Apr 2009
    Location
    Saitama, Japan
    Beans
    132
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: FYI about gnutls error -12

    Quote Originally Posted by duceduc View Post
    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.

  4. #104
    Join Date
    Mar 2012
    Beans
    1

    Re: Howto: Easy FTP with vsftpd


  5. #105
    Join Date
    May 2012
    Beans
    3

    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

  6. #106
    Join Date
    May 2012
    Beans
    5

    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?

  7. #107
    Join Date
    Oct 2010
    Beans
    2

    Re: Howto: Easy FTP with vsftpd

    Most probably you have an error in config file. Comment all and start adding line by line.

  8. #108
    Join Date
    May 2008
    Beans
    91
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Question 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?
    Ubuntu 11.10
    Learning Linux and Loving it...

  9. #109
    Join Date
    Feb 2007
    Location
    The Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    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?
    Last edited by Redsandro; June 14th, 2012 at 06:00 PM.
    Windows 7 for Media Production, Ubuntu 12.04/Cinnamon for other work.
    Xubuntu 12.04 as Media Center, CentOS 5.6 as server.
    Linux Mint on my casual laptop, Maemo 5 on my Nokia N900.

  10. #110
    Join Date
    Feb 2007
    Location
    The Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    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.
    Windows 7 for Media Production, Ubuntu 12.04/Cinnamon for other work.
    Xubuntu 12.04 as Media Center, CentOS 5.6 as server.
    Linux Mint on my casual laptop, Maemo 5 on my Nokia N900.

Page 11 of 13 FirstFirst ... 910111213 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •