ProFTPD

Aus brainelectronics Wiki
Wechseln zu: Navigation, Suche

Installation

Raspberry

Pi als FTP Server betreiben

Einstellungen

HTML Directory an htmluser übergeben

   $ sudo chown htmluser:root /var/www/html/

Custom Conf Default Root ändern und Login User erlauben:

   $ sudo nano /etc/proftpd/conf.d/proftp-custom.conf
# Ftp user doesn't need a valid shell
<Global>
    RequireValidShell off
</Global>

# Default directory is ftpusers home
### this is default and only allows to log into ftpuser home
DefaultRoot ~ ftpuser # allow only to live in ftpuser dir
DefaultRoot ~ htmluser # allow only to live in htmluser dir
###

# Limit login to this
<Limit LOGIN>
#    DenyGroup !ftpuser
#    DenyGroup !htmluser
    AllowUser htmluser  # allow only user htmluser to login
    AllowUser ftpuser   # allow only user ftpuser to login
</Limit>
 

Service Neustarten

   $ sudo service proftpd restart

Credits

Directory Settings
Limitating Settings
FTP Settings Commands
DefaultRoot Settings