Mainos / Advertisement:

Vsftpd

Kohteesta Taisto
Versio hetkellä 20. elokuuta 2015 kello 10.08 – tehnyt Frans (keskustelu | muokkaukset) (Ak: Uusi sivu: We define the access privileges:)
Siirry navigaatioon Siirry hakuun
Muut kielet:
English • ‎suomi

This is FTP server software for Linux. It's not as commonly used as proftpd, but is a useful tool in itself.

Installation

Install packages from package manager

 aptitude install vsftpd 

Configuration

Open the configuration file:

 nano /etc/vsftpd.conf

It is highly recommended to remove the anonymous FTP user immediately.

 anonymous_enable=NO

Remove comments (remove the number sign, #) and change the local_enable line to local_enable=yes. Write_enable allows writing files to the server with FTP.

local_enable=YES
write_enable=YES

And to wrap it up we block using the FTP connection to access other parts of the server.

chroot_local_user=YES

Save and close the file.

We create a new directory under a user's home directory.

 mkdir /home/username/files

We define the access privileges:

 chown root:root /home/username

Käynnistä palvelu uudelleen

 sudo service vsftpd restart

Lähteet

https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-on-ubuntu-12-04

Mainos / Advertisement: