Terminal Password Error Monterey 12.6.7

Credentials unable to verify in Terminal.

chsh: Credentials could not be verified, username or password is invalid.

Has anyone had this problem? Please help

Posted on Jul 11, 2023 1:26 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 13, 2023 1:05 AM

chsh is a command to change user database information – including, most notably, one's preferred shell (Unix command interpreter). The command name is an abbreviation of (ch)ange (sh)ell.


If you are not running as superuser (e.g., "root" or sudo), it asks for the user's password to prove that you have the right to change the information. If authentication failed, say, because you specified a bogus user name or a bogus password (or left off the -s before a newshell parameter, making it look like a bogus user name), you get the "Credentials could not be verified" message.



CHPASS(1)                 BSD General Commands Manual                CHPASS(1)

NAME
     chpass, chfn, chsh -- add or change user database information

SYNOPSIS
     chpass [-l location] [-u authname] [-s newshell] [user]

DESCRIPTION
     The chpass utility allows editing of the user database information asso-
     ciated with user or, by default, the current user.

     The chpass utility cannot change the user's password on Open Directory
     systems.  Use the passwd(1) utility instead.

     The chfn, and chsh utilities behave identically to chpass.  (There is
     only one program.)


2 replies
Question marked as Top-ranking reply

Jul 13, 2023 1:05 AM in response to Sparks0829

chsh is a command to change user database information – including, most notably, one's preferred shell (Unix command interpreter). The command name is an abbreviation of (ch)ange (sh)ell.


If you are not running as superuser (e.g., "root" or sudo), it asks for the user's password to prove that you have the right to change the information. If authentication failed, say, because you specified a bogus user name or a bogus password (or left off the -s before a newshell parameter, making it look like a bogus user name), you get the "Credentials could not be verified" message.



CHPASS(1)                 BSD General Commands Manual                CHPASS(1)

NAME
     chpass, chfn, chsh -- add or change user database information

SYNOPSIS
     chpass [-l location] [-u authname] [-s newshell] [user]

DESCRIPTION
     The chpass utility allows editing of the user database information asso-
     ciated with user or, by default, the current user.

     The chpass utility cannot change the user's password on Open Directory
     systems.  Use the passwd(1) utility instead.

     The chfn, and chsh utilities behave identically to chpass.  (There is
     only one program.)


Jul 12, 2023 11:09 AM in response to Rflip8

Hi there Rflip8,


We'll need some details in order to help. What exactly are you trying to accomplish in Terminal? Are you attempting to reset your Mac login password? If so, make sure you've tried the steps in this support article before attempting to use Terminal: If you forgot your Mac login password


What exactly are you doing in Terminal before this error appears?


Send over some details, and we'll take a closer look from there.


Thanks!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal Password Error Monterey 12.6.7

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.