Homepage Wiki Forum Buy

FTP

From GNUBLIN

Contents

A FTP-Server is used to transfer files or directorys per network.

Installation vsftp

vsftp is already included in the image. You just have to configure and start it:

  • edit /etc/vsftpd.conf
  • local_enable=YES
  • write_enable=YES
  • remove the user root from /etc/ftpusers
  • afterwards /etc/init.d/vsftpd start


Installation proftp

Internet connection is required to install proftp:

apt-get install proftpd

During the installation you will be prompted if you want to install it as service or standalone. We choose standalone

Configuration

After the installation you have to edit the "proftpd.conf" file, which is located at: /etc/proftpd/proftpd.conf

adduser ftpuser -home /home/ftpuser

Restart FTP server

/etc/init.d/proftpd restart


Connect to the FTP server

Now you can connect to the Gnublin Board.

advice if using webserver + PHP

The webserver normally runs as www-data. To be able to access /var/www you should add the new FTP user to the www-data group.

addgroup ftpuser www-data

In order that the PHP files would be executed safely, you must give the group the correct rights:

chmod 755 index.php

respectively regularly the whole folder:

cd /var/www
chmod -R 755 *
In other languages