FreeNAS Tutorial Part 5 – FTP Server Setup
The past couple of articles in our series of FreeNAS Server Build tutorials have covered how to stream your media to other devices. But what if instead of streaming content you wanted to copy the files to a remote location so you can access them at a later time? In this tutorial, we will show you how to setup FreeNAS as an FTP server.
FTP is a simple yet robust solution for sharing files across a local network or across the Internet. The great thing about FTP is that it is cross-platform. You can easily download and upload files from your Linux, Mac, or PC. There are many FreeNAS FTP tutorials out there on the Web, but most of the ones we found were very simplistic and allowed anonymous logins. In this scenario, we will cover how to setup local user authentication, something that has caused issues for others in the past.
In order to complete this tutorial, you must have completed Part 1 and Part 2 to make sure that the FreeNAS Operating System, discs, and permissions have the basic setup. Just getting started? Go download FreeNAS and catch up!
Let’s get started then!
Grant User Access to FTP Server
1. Login to your FreeNAS web-administration console
2. Hover your mouse cursor over the ‘Access’ tab
3. Click on the ‘Users and Groups’ menu item
4. Click on the ‘wrench’ icon next to the user you would like to give FTP access to
5. Under the ‘Additional group’ section, click on the ‘ftp’ group menu item
a. Note: clicking on a group in this menu will unselect any previous groups that may have been selected. To avoid this, hold the ‘CTRL’ key on a PC keyboard or the ‘Command’ key on an Apple Mac keyboard
6. Click on the ‘Save’ button
7. On the ‘Access | Users’ page, click on the ‘Apply changes’ button
Continue on to the FTP Service Setup
8. Hover your mouse cursor over the ‘Services’ tab
9. Click on the ‘FTP’ menu item
10. Click on the ‘Enable’ checkbox to select this item
11. In the ‘Local users only’ section, click on the ‘Only allow authenticated users…’ checkbox
12. In the ‘Default root’ section, check the ‘chroot() everyone…’ checkbox
13. Scroll to the bottom of the web page and click on the ‘Save and Restart’ Button
Connecting to Your New FTP Server
You can use your favorite FTP client, file browser window, or even a command-line or shell to connect to your new server. Listed below are a few examples
- Open a Windows Explorer window
- In the address bar, type in ‘ftp://’ then the IP address of your server
- Ex: ftp://10.0.8.165
3. When prompted, type in your user name and password
4. Click on the ‘Log On’ button
5. You should now see your FTP share
6. As previously mentioned, you can also access your FTP server from the command prompt
7. Run ‘cmd.exe’
8. When you see the shell, type ‘ftp’ and the ip address of your server
a. Ex: ftp 10.0.8.165
9. When prompted type your username and hit the ‘Enter’ key
10. When prompted type your password and hit the ‘Enter’ key
11. You should now be logged into your FTP server from the command prompt!
That was pretty easy right? Well you may not know it, but there are many forum posts on other sites from individuals expressing their frustration setting up FTP within their FreeNAS server. If you run into problems yourself, please feel free to let us know if you have any questions by using the ‘Comments’ feature below.
If you like this article or our website, please Share it with your friends!