In questo modo tutti gli utenti avranno accesso solo alla cartella /var/www. # DefaultRoot ~ĭi default si utilizza il carattere ~ per indicare la cartella utente, ma se volessimo utilizzare una cartella differente basterà togliere il commento “#” ed indicare la nuova cartella principale. Il parametro DefaultRoot indica la cartella principale alla quale l’utente si collegherà al login. ServerName "Raspberry SERVER" Cartella principale Potete mettere il nome che preferite anche se sarebbe meglio utilizzare quello del server. Il primo parametro da modificare è il nome del server ServerName che nel mio caso si trova alla riga 15. # Include other custom configuration files # Limit WRITE everywhere in the anonymous chroot # We want 'welcome.msg' displayed at login, and '.message' displayed # Limit the maximum number of anonymous logins # Cosmetic changes, all files belongs to ftp user # We want clients to be able to login with "anonymous" as well as "ftp" # A basic anonymous configuration, no upload directories. # Useful to keep VirtualHost/VirtualRoot directives separated # Delay engine reduces impact of the so-called Timing Attack described inĬontrolsLog /var/log/proftpd/controls.logĬontrolsSocket /var/run/proftpd/proftpd.sock # savings timezone regardless of whether DST is in effect. DefaultRoot or ), it will use the non-daylight If this is not set, and proftpd is configured to # In order to keep log file dates consistent after chroot, use timezone info # Logging onto /var/log/lastlog is enabled but set to off by default # Uncomment this if you like to see progress and transfer rate with ftpwho # Be warned: use of this directive impacts CPU average load! # AuthOrder mod_auth_pam.c* mod_auth_unix.c # This is required to use both PAM-based authentication and local passwords # Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords: # Normally, we want files to be overwriteable. # (second parm) from being group and world writable. # Umask 022 is a good standard umask to prevent new files and dirs # Set the user and group that the server normally runs at. # that allows you to limit maximum number of processes per service # in standalone mode, in inetd mode you should use an inetd server If you need to allow more than 30 concurrent connections # To prevent DoS attacks, set the maximum number of child processes # refresh any configured MasqueradeAddress directives every 8 hours # This is useful for masquerading address with dynamic IPs: # address and opening the passive ports used on your firewall as well. # If your host was NATted, this option is useful in order to Ephemeral ports can be used for that, but # In some cases you have to specify passive ports range to by-pass # Use this directive to release that constrain. # Users require a valid shell listed in /etc/shells to login. # Use this to jail all users in their homes # Read README.Debian for more information on proper configuration. # Set to inetd only if you would run proftpd by inetd/xinetd. # If set on you can experience a longer connection delay in many cases. # Set off to disable IPv6 support which is annoying on IPv4 only boxes. # To really apply changes, reload proftpd after modifications, if # /etc/proftpd/nf - This is a basic ProFTPD configuration file. Il file di configurazione è il seguente: # Per prima cosa troviamo il file di configurazione nf che si trova nel percorso: /etc/proftpd/nf Nel mio caso ho utilizzato le credenziali del utente root quindi pi / raspberry (sarebbe meglio aver cambiato la password all’utente root), in questo modo ho accesso con il massimo dei privilegi a tutte le cartelle della Raspberry. quelle di default user: pi password: raspberry) Configurazione FilezillaĬome potete vedere nell’immagine ho creato una connessione con nome Raspberry_c4d alla mia raspberry con indirizzo ip 192.168.1.155 (verificate il vostro ip con il comando ifconfig) sulla porta 21. Login del client FTPĪ questo punto possiamo già accedere al server dal nostro PC utilizzando le credenziali di accesso della raspberry (es. Il risultato che otteniamo: ProFTPD Version 1.3.5b Per verificare la corretta installazione digitiamo il comando: proftpd -v Per farlo basta digitare il seguente comando: sudo apt install proftpd Installazione del server FTPĬi sono diverse applicazioni FTP disponibili per Raspberry, in questo esempio vediamo come installare proftpd. Se dobbiamo trasferire dei file dal nostro PC alla Raspberry o viceversa senza utilizzare scomode chiavette USB è sufficiente installare un server FTP per poterlo fare comodamente sfruttando la connessione di rete.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |