Create Dummy FTP Users

So it happens time and time again, I research and learn how to do stuff and after couple months (read: days) when I want to do it again I can’t remember how. This is one of those things.

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

That’s it.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s