“You entered an invalid username or password for the server” in Finder on Mac

The server refused your name or password. The account, the domain, or an old saved password can be wrong.

Fix this with your agentCopies a prompt for Claude Code, Codex or any agent that can use Terminal.

My Mac has this problem: “You entered an invalid username or password for the server” in Finder on Mac. Read https://kilobat.app/guides/finder-invalid-username-or-password-for-the-server.md and work through it with me. Install the Kilobat CLI if it’s missing: brew install seifip/kilobat/kilobat. Run the guide’s Terminal and kilobat checks yourself and tell me what you find. List the steps only I can do. Ask before you change any setting.

Applies to: macOS 13 Ventura and later. The text was checked in NetAuthAgent on macOS 27.2.Checked: 29 October 2026

Symptoms

  • Finder shows “You entered an invalid username or password for the server.” with the server name.
  • You see the prompt again after you sign in.
  • A saved connection used to work.

Likely causes

  • A wrong user name, domain or password. The account may need a domain, such as DOMAIN\name.
  • An old saved password. The password changed on the server, but the keychain keeps the old one.
  • A locked or expired account. The server locks the account after failures.

How to check

  1. Test that the server answers on the file sharing port. SMB uses port 445.

    nc -vz -G 5 server.local 445
  2. Try the address instead of the name. Use Go › Connect to Server and type smb://192.168.1.10.

  3. Check that your Mac is on the same network as the server. Look at the Network settings.

How to fix it

  1. Type the user name and password again. Choose Registered User, not Guest.

  2. Try the domain form of the name if the server uses a domain.

  3. Open Keychain Access. Search for the server name and delete the old saved entry.

  4. Ask the administrator whether the account is locked or expired.

Questions

Why does it ask again and again?

The saved entry in the keychain can hold the old password.

Is the server down?

No. It answered and refused the login.

Sources

Checked on 29 October 2026.