Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ad-inserter domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cookie-law-info domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114
Montare uno spazio FTP su una directory locale su linux - Blog WebEats

Come montare uno spazio FTP su una directory locale su linux

Prima di tutto installiamo curlftpfs e creiamo la cartella dove montare il nostro spazio FTP

apt-get install curlftpfs
mkdir /mnt/my_ftp

ora per montare l’FTP non resta che digitare questo comando

curlftpfs ftpuser:ftppass@ftp.dominio.it /mnt/my_ftp/

per dare permessi di scrittura anche ad altri utenti

curlftpfs -o allow_other ftpuser:ftppass@ftp.dominio.it /mnt/my_ftp/

Spazio FTP su una directory locale su linux usando il file /etc/fstab

E’ possibile montare l’FTP anche usando il file /etc/fstab

pico /root/.netrc

e al suo interno inseriamo

machine ftp.dominio.it
login ftp-user
password ftp-pass

proteggiamo il file cambiando i permessi

chmod 600 /root/.netrc

Controlliamo l’uid e il dig del nostro utente non-root, questo utente potrà accedere alla cartella montata

id

aggiungiamo questa linea al file /etc/fstab ricordando di cambiare i vari parametri:

curlftpfs#ftp.dominio.it /mnt/my_ftp fuse allow_other,uid=1000,gid=1000,umask=0022 0 0

Ora montiamo la partizione con:

mount -a