Remove Default Users/Passwords from XAMPP Filezilla FTP Server
This article is part of a series of articles about making XAMPP more secure. See the overview page for all the security measures.
By default, the FTP server that comes with XAMPP allows anonymous user logins and also has a default user with
username: newuser
password: wampp
In order to make it more secure, you should disable anonymous logins, and get rid of the “newuser” user. You may also want to create a new FTP user for your legitimate FTP usage. In order to accomplish this, do the following:
- Install FileZilla as a service (and start it) in order to access the FTP server config:
- Open up the XAMPP Control Panel
- Check box next to “Svc” for Filezilla
- Click “OK” on window which says “Click OK to install the Filezilla FTP Service”
- Click “Yes” on window which says “Install Service?”
- Click “No” for the window which states “Autostart Service?”, unless you want the FTP server to launch whenever you reboot your machine (in that case, click “Yes”).
- Click “Yes” on the window which asks “Start Server?”
- Launch the Filezilla server administration
- In the XAMPP control panel, make sure Filezilla is running
- In the XAMPP control panel, click on the “Admin” button for Filezilla.
- A dialog box that pops up titled “Connect to Server?”. This dialog box will show defaults of: server address=127.0.0.1, Port=14147, Administration Password=(blank). Leave these defaults alone and click “OK”.
- Delete the anonymous user
- In the Filezilla server window, from the pulldown menu choose Edit->Users to get the “Users” Dialog box.
- In “Users:” area on right side, highlight “anonymous”.
- In the middle area, under “Account settings”, uncheck “Enable account”
- Click “OK” to close the “Users” dialog box.
- Delete the default user “newuser”
- In the Filezilla server window, from the pulldown menu choose Edit->Users to get the “Users” Dialog box.
- In “Users:” area on right side, highlight “newuser”.
- Click “Remove” in the “Users: ” area to remove this user.
- Click “OK” to close the “Users” dialog box.
- Create legitimate users
- In the Filezilla server window, from the pulldown menu choose Edit->Users to get the “Users” Dialog box.
- In “Users:” area on right side, click “Add”.
- In the “Add User Account” dialog box:
- For “Please enter the name of the user account that should be added:”, enter new account user name.
- For “User should be member of the following group:”, you can leave it as <none>
- With your new user account name highlighted in the “Users:” area, check the box next to “Password”, and type in a password in the edit box. Note: The more characters in your password, the more secure it will be. It is also more secure to have a password that is not a word that can be found in a dictionary and has some special characters such as # or !.
- For extra security, click “Force SSL for user login” to force encryption of your password. Warning: This will not work if you use the regular Windows FTP client with this server. You’ll need to use another FTP client such as the corresponding Filezilla one in order to have this security.
- Setup the directories that this new user will have access to.
- Highlight “Shared Folders” under the “Page:” area on the left side of the dialog box.
- Now click on “Add” under the shared folders area to add a directory.
- In the “Browse for folders” window that comes up, navigate to the desired folder and press OK. This will give the FTP user access to this directory and all sub-directories.
- Choose the powers that this user will have (such as add, write, delete) for files and other folders under this directory.
- Repeat this for all directories you want to add.
- Click “OK” to close the “Users” dialog box.
Next Step
The next step in this tutorial is to go back and continue to remove default usernames and passwords.
Thanks, I have been looking for a tutorial like this for
a while.
Awesome step by step instructions – very thorough and very worthwhile info for remove default users. Thanks!!!!
i installed filezilla in xampp…i am using php script how to connect filezilla and php. Should i add any code in php for connect to filezilla.
Thanks. I have been looking for the port number….
Nice tutorial! Thanks!
[…] how do i set up filezilla on XAMPP? Try with the below link hope it will help you. Remove Default Users/Passwords from XAMPP Filezilla FTP Server __________________ QA […]
Dear genius, thanks for such a useful tutorial. It’s too good 🙂
Really good, any thoughts on the Mercury Mail Server…setting up basic configuration…changing passwords, etc…
thanx……..!
Thanks man, a really good tutorial. Helped me alot, thanks!
Hi,
Is it possible to change the password of current FTP User ?
good tutorial
In my case Users option in Edit menu is disable.
How can i fix it?
Thanks you very much for the guide.