Link to home
Start Free TrialLog in
Avatar of Peter Chan
Peter ChanFlag for Hong Kong

asked on

FTP issue

Hi,
I followed up the procedure below
https://www.osradar.com/how-to-set-up-an-ftp-server-ubuntu-20-04/

to create FTP on Ubuntu 20.04 server but after that I cannot put files into FTP (got issue of no proper permission below).


User generated image


Within Ubuntu server, I do verify all is fine to FTP like 



root@jamesubuntu20:/etc# ftp 192???
Connected to 192???.
220 (vsFTPd 3.0.3)
Name (192???:james): ftpuser
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
ftp>


Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

you were able to put files after login to ftp server?

Avatar of Peter Chan

ASKER

I cannot put files to FTP from outside.
my question is about the local ftp you tried. It could be directory permissions issue.

Which path (directory) to put proper rights?
Avatar of Kimputer
Kimputer

Please show us your vsftpd.conf, as well as showing the folder owner of the home folder of ftpuser
ASKER CERTIFIED SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Note: The vsftpd code is horrible to work with. It's design is incoherent.

Can you get this code working + keep it working? Yes!

Will it take you hours/day to muck around with this code in the beginning + on a regular basis? Likely.

You'll only use vsftpd if you're looking for a new hobby because you have lots of time to burn + playing solitaire is getting boring.

https://www.experts-exchange.com/questions/29220417/How-to-resolve-Could-not-start-transfer-FileZilla-on-Mac-Ubuntu-18-04-LAMP-on-Linode.html provides setup instructions for the MySecureShell SFTP server, which is a near zero config SFTPD that works... out of the box... as you expect...

All setup instructions are provided + the config file I use for 1000s of running SFTPD instances is also attached.
Aside: If you require setting up ACLs to commingle SFTP + HTTPS files, open a new question about this + I'll dig up the related EE threads about ACLing.