Install Proftp server
# opkg install proftpd
Edit /etc/proftpd.conf
# vi /etc/proftpd.conf
ServerName "ProFTPD Server"
ServerIdent on "FTP Server ready."
ServerType standalone
DefaultServer on
DefaultAddress 127.0.0.1
RequireValidShell off
Port 21
UseIPv6 off
Umask 022
MaxInstances 10
User nobody
Group nogroup
AuthUserFile /etc/passwd
DefaultRoot /home
AllowOverwrite on
MaxClients 10
MaxClientsPerHost 10
MaxClientsPerUser 10
MaxHostsPerUser 10
DeleteAbortedStores on
UserAlias anonymous ftp
Adding new user for ftp account by editing /etc/passwd, in my case i added user openwrt, copy paste configuration from user ftp, but change user ID number and group name.
# vi /etc/passwd-
root:$1$nvFplbd8$l05HR0mdTHcGprNaMg8QA1:0:0:root:/root:/bin/ash
daemon:*:1:1:daemon:/var:/bin/false
ftp:*:55:55:ftp:/home/ftp:/bin/false
network:*:101:101:network:/var:/bin/false
nobody:*:65534:65534:nobody:/var:/bin/false
openwrt:*:65538:55:openwrt:/home:/bin/false
Adding password for user openwrt
# passwd openwrt
Enabling proftpd service upon start
# /etc/init.d/proftpd enable
To start proftpd service
# /etc/init.d/proftpd start
To stop proftpd service
# /etc/init.d/proftpd stop
Now start proftpd for debug and access it using ftp client and see if any errors
# proftpd -n -d 10
If everything ok, you should see something similar with this picture when accessing proftpd server
Done
3 comments:
Very helpful, thanks! :)
More info about FTP server on openwrt wiki, including from my site https://wiki.openwrt.org/doc/howto/ftp.overview
Post a Comment