Demo image Demo image Demo image Demo image Demo image Demo image

set ftp server di linux

  • Thursday, November 3, 2011
  • zana991
  • Install the FTP server

    • To install the FTP server, type:
      • sudo aptitude install vsftpd

    Configure FTP server

    • The FTP server configuration is done by editing the file / etc / vsftpd.conf
    • To edit this file, do:
      • gksu gedit /etc/vsftpd.conf

    Prohibit anonymous FTP

    • Change the line:
      • anonymous_enable=YES
    • in:
      • anonymous_enable=NO

    Allow local users to connect

    • Add:
      • local_enable=YES


    This will allow users reported in Ubuntu use the same login/password to access the FTP server.

    Allow users to upload files

    • Add:
      • write_enable=YES 

    Select Interface

    • By default the FTP server will listen on all interfaces. If you want to restrict it only to your local network(10.0.0.x) add the line:
      • listen_address=10.0.0.1
    • Given that the LAN IP address of your FTP server is 10.0.0.1

    Start FTP server

    • (Re)start the FTP server so that it takes into account the configuration we just changed.
    • Type:
      • sudo /etc/init.d/vsftpd restart

    0 comments: