How to change a saved SMB username or password in the iPhone Files app
By Isaac Griffiths, developer of SMBDrop ·
You changed the password on your NAS, or want to use a different account, and the iPhone's Files app won't let go of the old one. It signs in as before and shows nothing, or fails, or keeps you as a Guest when you need write access. There's no Edit button for a saved server, which is where most of the confusion comes from.
Here's the order that works, from the quickest fix to the stubborn cases.
Step 1: Eject the server
- Open Files and tap Browse.
- Under Shared, tap the eject button next to the server.
That closes the current connection, which is what the Files app keeps using otherwise. It doesn't delete the saved login.
Step 2: Remove it from Recent Servers
- Tap ⋯ at the top of Browse, then Connect to Server.
- Under Recent Servers, tap the (i) next to the server and choose Remove.
Step 3: Connect again, as a Registered User
- On the same screen, type
smb://and the server's IP address, for examplesmb://192.168.1.50, and tap Connect. - Choose Registered User, not Guest.
- Type the username and password you want to use now. Use the account name on the server, not your Apple Account.
If you're asked for the login and it works, you're done.
If it signs in with the old details without asking
Connect to Server can save the password, and people report it being offered again after the server was removed. Places to clear it:
- The Passwords app (iOS 18 and later; earlier, Settings → Passwords). Search for the server's IP address or name and delete any entry for it. Not everyone finds one there.
- Keychain on a Mac, if you use iCloud Keychain. One MacRumors user couldn't see the saved server password on the iPad at all and only got rid of it by deleting it in Keychain Access on a Mac, searching for the server's name.
- A different address for the same server. If you connected by name before, connecting by IP address (or the other way round) is a separate entry, so it asks for a login. Handy for testing, though it leaves the old entry in place.
If the new password is rejected
When the iPhone asks and the new password still fails, the problem is usually on the server:
- Windows with a Microsoft account. After a Microsoft account password change, Windows file sharing can keep accepting only the old password for a while. Sign in to the PC once with the new password (not a PIN), or use a separate local account for sharing. The Windows shared folder guide covers the account choice.
- Blocked after failed attempts. Synology's Auto Block, QNAP's access protection and similar features block an IP address after repeated failed sign-ins, which is exactly what an iPhone retrying an old password causes. Check the block list and remove the phone's address. See Synology SMB not working from iPhone.
- The SMB password is separate. On Samba servers, including Raspberry Pi, CasaOS and Home Assistant, the SMB password is set with
smbpasswdor the app's own settings, not the Linux login password. - A domain prefix. Some servers want the plain username; others want
WORKGROUP\userorPCNAME\user. Try the plain name first.
Signed in as Guest by mistake?
Guest access usually means read only, or no access to most shares. If folders look empty or New Folder is greyed out, check how you're signed in. Eject, remove the server and reconnect as a Registered User, as above. If you're definitely signed in with the right account and it's still read only, that's the iOS problem covered in the read-only share guide.
Where SMBDrop fits
Disclosure: I make SMBDrop. Changing the password on the server side works the same for every app.
In SMBDrop, each saved share keeps its own username and password in the iOS Keychain, and you can edit them in Settings. Run Test Connection after a change to check the new details before you send anything. Deleting a share deletes its password too. It doesn't change what the Files app has saved, so if you use both, update both.
FAQ
How do I change the password for a server in the iPhone Files app?
Eject the server under Browse, then in Connect to Server tap the (i) next to it under Recent Servers and choose Remove. Connect again with smb:// and the IP address, choose Registered User and enter the new details.
Why does the Files app keep using my old SMB password?
Removing a server doesn't always remove its saved password. Delete any entry for the server in the Passwords app, or in Keychain Access on a Mac if you use iCloud Keychain, then reconnect.
Why is my new password rejected after I changed it on Windows?
With a Microsoft account, Windows file sharing can keep accepting only the old password for a while. Sign in to the PC once with the new password rather than a PIN, or use a local account for sharing.
How do I stop the Files app connecting as Guest?
Eject and remove the server, then connect again and choose Registered User. Guest access is usually read only or limited to a few shares.
More guides
- iPhone Files app can't connect to server (smb://): every fix
- "Content Unavailable" when opening an SMB share on iPhone
- iPhone Files app says the SMB share is read only: how to fix it
- How to copy files from an iPhone to a Windows shared folder
- Synology SMB not working from iPhone: DSM 7.2 settings to check
