It's common for macOS to remember your Wi-Fi password once you've entered it for a network. However, if your iMac is suddenly asking for the Wi-Fi password every time you wake it up, there are a few troubleshooting steps you can try to resolve the issue:
1. **Check Keychain Access**:
- Go to the "Applications" folder > "Utilities" > "Keychain Access."
- In Keychain Access, search for your Wi-Fi network name.
- Double-click on your Wi-Fi network name entry.
- Check the box next to "Show password" and enter your macOS administrator password when prompted.
- Make sure "Access Control" is set to "Allow all applications to access this item."
- Click "Save Changes."
2. **Forget and Reconnect to the Network**:
- Go to "System Preferences" > "Network."
- Select Wi-Fi on the left sidebar.
- Click the "Advanced" button in the bottom-right corner.
- In the "Wi-Fi" tab, select your Wi-Fi network and click the '-' button to remove it.
- Click "OK" to save the changes.
- Reconnect to your Wi-Fi network by selecting it from the Wi-Fi menu in the top-right corner of the screen.
3. **Reset Network Settings**:
- In "System Preferences," go to "Network."
- Select Wi-Fi on the left sidebar.
- Click the gear icon at the bottom-left and choose "Set Service Order."
- In the new window, drag Wi-Fi to the top of the list and click "OK."
- Reconnect to your Wi-Fi network.
4. **Restart Your iMac**:
- Sometimes, a simple restart can resolve issues like this.
5. **Update macOS**:
- Ensure your macOS is up to date. Sometimes, updates include bug fixes that can resolve connectivity issues.
6. **Keychain Repair**:
- If none of the above steps work, you can try repairing your Keychain:
- Open Keychain Access.
- Go to "Keychain Access" in the menu bar and select "Keychain First Aid."
- Enter your username and password and click "Verify."
- If any issues are found, click "Repair" to fix them.
7. **Contact Apple Support**:
- If the problem persists, it might be a more complex issue that requires assistance from Apple Support.