I'm struggling in creating an FTP user on a Linux server using the command line.
- I installed
vsftpd
- Then i created a user using multiple commands for multiple times like
sudo adduser --home /home/testuser testuser --no-create-home
- Added password to it,
- Edited
etc/vsftpd.conf
file, - enabled
chroot_local_user=YES
, - Added user name to config files, etc etc. But none seems to work.
- They are getting created as SFTP users. I disabled the SSH access and then it stopped for FTP too.
- What all I need is to do is simply set up an FTP user and jail them to a path without SSH access. Can anyone help? I had gone through a lot of posts. But still no solution.