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

  1. Open Files and tap Browse.
  2. 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

  1. Tap ⋯ at the top of Browse, then Connect to Server.
  2. Under Recent Servers, tap the (i) next to the server and choose Remove.

Step 3: Connect again, as a Registered User

  1. On the same screen, type smb:// and the server's IP address, for example smb://192.168.1.50, and tap Connect.
  2. Choose Registered User, not Guest.
  3. 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:

If the new password is rejected

When the iPhone asks and the new password still fails, the problem is usually on the server:

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

Try SMBDrop

Send original photos, videos and files from your iPhone straight to your own SMB share. One purchase, no account, no subscription.

Download SMBDrop on the App Store £9.99 once · no subscription · iOS 17+