Mainos / Advertisement:

Ero sivun ”Vsftpd/en” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
(Ak: Uusi sivu: == Installation ==)
(Ak: Uusi sivu: == Sources ==)
 
(10 välissä olevaa versiota samalta käyttäjältä ei näytetä)
Rivi 4: Rivi 4:
 
== Installation ==
 
== Installation ==
  
Asenna paketit pakettihallinnasta
+
Install packages from package manager
  
 
   aptitude install vsftpd  
 
   aptitude install vsftpd  
  
== Konfigurointi ==
+
== Configuration ==
  
Avaa konfigurointi tiedosto
+
Open the configuration file:
  
 
   nano /etc/vsftpd.conf
 
   nano /etc/vsftpd.conf
  
Eritysen suositeltavaa on poistaa Anonyyminen FTP-käyttäjä pois käytöstä.
+
It is highly recommended to remove the anonymous FTP user immediately.
  
 
   anonymous_enable=NO
 
   anonymous_enable=NO
  
Poista kommentit (risuaita #) ja muuta local_enable=yes. Write_enable sallii FTP-yhteydellä kirjoittamisen palvelimelle.
+
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
 
  local_enable=YES
Rivi 24: Rivi 24:
 
  write_enable=YES
 
  write_enable=YES
  
Loppuksi estetään FTP yhteydellä pääsy muihin osiin palvelimessa.
+
And to wrap it up we block using the FTP connection to access other parts of the server.
  
 
  chroot_local_user=YES
 
  chroot_local_user=YES
  
Tallenna ja sulje tiedosto.
+
Save and close the file.
  
Luodaan uusi hakemisto käyttäjätunnuksen kotihakemiston alle.
+
We create a new directory under a user's home directory.
  
 
   mkdir /home/username/files
 
   mkdir /home/username/files
  
Määritetään käyttöoikeudet
+
We define the access privileges:
  
 
   chown root:root /home/username
 
   chown root:root /home/username
  
Käynnistä palvelu uudelleen
+
Restart service
  
 
   sudo service vsftpd restart
 
   sudo service vsftpd restart
  
== Lähteet ==
+
== Sources ==
  
 
https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-on-ubuntu-12-04
 
https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-on-ubuntu-12-04

Nykyinen versio 20. elokuuta 2015 kello 10.08

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

Restart service

 sudo service vsftpd restart

Sources

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

Mainos / Advertisement: