uFTP - FTP Server

uftp server, open source ftp server, linux ftp server, linux ftp server for embedded, easy to configure ftp server, ftp server for initramfs

User Tools

Site Tools


uftp-server-installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
uftp-server-installation [2018/12/15 21:10] kingkuftp-server-installation [2024/05/08 09:01] (current) kingk
Line 1: Line 1:
-**uFTP server installation**+**uFTP - FTP server installation**
  
 **Option 1 install from sources (recommended)** **Option 1 install from sources (recommended)**
Line 61: Line 61:
 </code> </code>
  
-The openSSL libraries are required to compile, under Ubuntu use the following command:+**Note:** To enable the PAM Authentication module for the standard /etc/passwd, /etc/shadow authentication find the following lines in the makefile. 
 +<code> 
 +ENABLE_PAM_SUPPORT= 
 +PAM_AUTH_LIB= 
 +#TO ENABLE PAM AUTH UNCOMMENT NEXT TWO LINES 
 +#ENABLE_PAM_SUPPORT= -D PAM_SUPPORT_ENABLED 
 +#PAM_AUTH_LIB= -lpam 
 +</code> 
 + 
 +Remove the comments at the lines: 
 +<code> 
 +#ENABLE_OPENSSL_SUPPORT=-D OPENSSL_ENABLED 
 +#LIBS=-lpthread -lssl -lcrypto 
 +</code> 
 + 
 +The final result would be: 
 +<code> 
 +ENABLE_PAM_SUPPORT= 
 +PAM_AUTH_LIB= 
 +#TO ENABLE PAM AUTH UNCOMMENT NEXT TWO LINES 
 +ENABLE_PAM_SUPPORT= -D PAM_SUPPORT_ENABLED 
 +PAM_AUTH_LIB= -lpam 
 +</code> 
 + 
 +To disable IPV6 support, for legacy device modify the makefile by disabling the IPV6_ENABLED define 
 +From 
 +<code> 
 +ENABLE_IPV6_SUPPORT= 
 +#TO ENABLE IPV6 support uncomment next line 
 +ENABLE_IPV6_SUPPORT=-D IPV6_ENABLED 
 +</code> 
 + 
 +to this  
 + 
 +<code> 
 +ENABLE_IPV6_SUPPORT= 
 +#TO ENABLE IPV6 support uncomment next line 
 +#ENABLE_IPV6_SUPPORT=-D IPV6_ENABLED 
 +</code> 
 +openSSL libraries are required if uFTP is compiled with TLS support, under Ubuntu use the following command:
 <code> <code>
 sudo apt-get install libssl-dev sudo apt-get install libssl-dev
Line 68: Line 107:
 Generate a new certificate (only if TLS/SSH is enabled): Generate a new certificate (only if TLS/SSH is enabled):
 <code> <code>
-mkdir /etc/uftp+mkdir /etc/uFTP
  
-cd /etc/uftp+cd /etc/uFTP
  
 openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
Line 78: Line 117:
 mv newkey.pem key.pem mv newkey.pem key.pem
  
-chown root:root /etc/uftp/key.pem +chown root:root /etc/uFTP/key.pem
- +
-chmod -rwx /etc/uftp/key.pem+
  
-chmod u+rwx /etc/uftp/key.pem+chmod -rwx /etc/uFTP/key.pem
  
 </code> </code>
Line 103: Line 140:
 chown root:root /etc/uftpd.cfg chown root:root /etc/uftpd.cfg
 chmod -rwx /etc/uftpd.cfg chmod -rwx /etc/uftpd.cfg
-chmod u+rwx /etc/uftpd.cfg 
 </code> </code>
  
Line 118: Line 154:
 <code> <code>
 # sudo cd /sbin # sudo cd /sbin
-# sudo wget http://www.uftpserver.com/downloads/binaries/latest/x64/uFTP+# for x64 
 +# sudo wget https://www.uftpserver.com/downloads/binaries/latest/x64/uFTP 
 +# for arm 
 +# sudo wget https://www.uftpserver.com/downloads/binaries/latest/armhf/uFTP
 </code> </code>
  
Line 125: Line 164:
 <code> <code>
 # sudo cd /etc # sudo cd /etc
-# sudo wget http://www.uftpserver.com/downloads/configuration_sample/uftpd.cfg+# sudo wget https://www.uftpserver.com/downloads/configuration_sample/uftpd.cfg
 </code> </code>
  
Line 133: Line 172:
 chown root:root /etc/uftpd.cfg chown root:root /etc/uftpd.cfg
 chmod -rwx /etc/uftpd.cfg chmod -rwx /etc/uftpd.cfg
-chmod u+rwx /etc/uftpd.cfg 
 </code> </code>
  
Line 141: Line 179:
 </code> </code>
  
-All binary downloads and examples can be found at: http://www.uftpserver.com/downloads/+All binary downloads and examples can be found at: https://www.uftpserver.com/downloads/
  
  
  
uftp-server-installation.1544904602.txt.gz · Last modified: 2019/03/26 12:32 (external edit)