Pogoplug as ftp server

The purpose is to have an ftp server so that otr files can be uploaded there via pushftp.

This is a throw-away configuration, quick to rebuild if necessary.

Install Debian as usual.

This is based on https://www.howtoforge.com/tutorial/proftpd-installation-on-debian-and-ubuntu/.

1 Install proftpd

  apt-get install proftpd-basic

1.1 ADDED: Add debian hostname to /etc/hosts

  echo "127.0.0.1 debian" >> /etc/hosts

1.2 Create user and groups

addgroup ftpgroup
adduser otrupload -shell /bin/false -home /ftpshare
adduser otrupload ftpgroup

1.3 Change permissions

chmod -R 1777 /ftpshare/

1.4 Adapt /etc/proftp/proftpd.conf

Add

<Global>
    RootLogin   off
    RequireValidShell off
</Global>

DefaultRoot  ~

<Limit LOGIN>
    DenyGroup !ftpgroup
</Limit>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s