I don’t like the idea of FTP users having an actual login account on my servers. (It isn’t best practice either). It’s just a door way to break into your server waiting to be explored. To get around that on Linux, users with no privileges to login to the shell are created with their home folder being wherever I want FTP to access.
So let’s get going:
First, we define the “dummy” shell environment by editing ‘/etc/shells‘ with this command. (You can replace nano for your preferred text editor)
sudo nano /etc/shells
Add the following line to the end of the file
Create the user
sudo useradd dummyuser –p crypticpwd –d /ftp/folder/path –s /bin/false