Problem with Terminal after running `chsh -s /bin/zsh`

Logged into Terminal to make a change to Preview's Scaling as defaults write com.apple.Preview PVImagePrintingScaleMode -bool FALSE

from Mac KungFu https://www.mackungfu.org/turn-of-preview-s-scaling-when-printing. Was told in Terminal that "The default interactive shell is now zsh. To update your account is use zsh, please run `chsh -s /bin/zsh`. When I entered that code in Terminal it responded with "Changing shell for normand." Followed by "Password for normand:" and a key symbol. I am unable to enter anything after that, so I cannot enter my password. I selected the key symbol and hi return. I was then given this:

chsh: Credentials could not be verified, user name or password is invalid. Credentials could not be verified, user name or password is invalid." followed by "iMac2020:~ normand$" I tried entering my password after that and got: "-bash: (my password): command not found

iMac2020:~ normand$ "

Not sure where to go from here. Help needed.



iMac 27″, macOS 10.13

Posted on Mar 26, 2023 2:10 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 26, 2023 2:22 PM

You should not need to authenticate that, but…

When you enter a password in a shell, you won’t see anything echoed on screen. Just type it and hit return.

Similar questions

8 replies

Mar 26, 2023 4:29 PM in response to normando

normando wrote:

leroydouglas:
This is my personal computer. I am logged into my Admin account and my password works whenever I have to make changes, like adding an app. I don't know why it asked for my password and then gave me s––t about it. Maybe it had something to do with selecting the key symbol (something I'd never seen before) and hitting enter/return.

I just don't know if all the wording means that the system won't recognize my password now. Not sure what to test with.

As far as the Preview Scaling issue is concerned, I should probably ask that in a different topic area.


You test it by looking at your current Shell if it changed to the new zsh as expected...? if not you can try again.


I really don't see that as an issue. It is not going to change your admin psswd no matter what the error.



What exactly are you trying to accomplish with "Preview Scaling", for what purpose?



Mar 26, 2023 6:33 PM in response to normando

Are you saying that all the business about "Credentials could not be verified…" etc. doesn't matter?

I’m not sure how you arrived at that. If at the password prompt, you hit return, it certainly would fail as you may not use the trivial password. You should have typed your password and hit return.

I can just close the Terminal window without worrying about any of it? (I never use Terminal because I'm afraid of it.)

Yes, you should never go near it if you don’t want to bother to learn how to use it.

Mar 26, 2023 2:34 PM in response to normando

normando wrote:

Logged into Terminal to make a change to Preview's Scaling as defaults write com.apple.Preview PVImagePrintingScaleMode -bool FALSE
from Mac KungFu https://www.mackungfu.org/turn-of-preview-s-scaling-when-printing. Was told in Terminal that "The default interactive shell is now zsh. To update your account is use zsh, please run `chsh -s /bin/zsh`. When I entered that code in Terminal it responded with "Changing shell for normand." Followed by "Password for normand:" and a key symbol. I am unable to enter anything after that, so I cannot enter my password. I selected the key symbol and hi return. I was then given this:
chsh: Credentials could not be verified, user name or password is invalid. Credentials could not be verified, user name or password is invalid." followed by "iMac2020:~ normand$" I tried entering my password after that and got: "-bash: (my password): command not found
iMac2020:~ normand$ "
Not sure where to go from here. Help needed.



to see your current shell:

 echo $SHELL


typically no psswd is required to change a shell...


easy enough to change per the instructions, copy and paste:

chsh -s /bin/zsh



To see all your options:

 cat /etc/shells



the references: Use zsh as the default shell on your Mac - Apple Support



Note: your reference is from 2013...?


I do not see a setting for Preview scaling...from your command above (?) when I try to read the default:

defaults read com.apple.Preview PVImagePrintingScaleMode 


2023-03-26 14:23:48.406 defaults[31834:2154315]

The domain/default pair of (/Users/UserName/Library/Containers/com.apple.Preview/Data/Library/Preferences/com.apple.Preview, PVImagePrintingScaleMode) does not exist


MacBook-Pro ~ %


Mar 26, 2023 2:59 PM in response to leroydouglas

leroydouglas:

Okay, that's what I did originally, copied and pasted:
chsh -s /bin/zsh

That's when I got "Changing shell for normand" and

"[Password for normand:" followed by the key symbol.

Are you saying that all the business about "Credentials could not be verified…" etc. doesn't matter? I can just close the Terminal window without worrying about any of it? (I never use Terminal because I'm afraid of it.)


As to the code for trying to stick the scaling in Preview at 100% -- it's not usable in Ventura 13.2.1, eh?

Mar 26, 2023 3:15 PM in response to normando

normando wrote:

leroydouglas:
Okay, that's what I did originally, copied and pasted:
chsh -s /bin/zsh
That's when I got "Changing shell for normand" and
"[Password for normand:" followed by the key symbol.
Are you saying that all the business about "Credentials could not be verified…" etc. doesn't matter? I can just close the Terminal window without worrying about any of it? (I never use Terminal because I'm afraid of it.)

As to the code for trying to stick the scaling in Preview at 100% -- it's not usable in Ventura 13.2.1, eh?


Is this a personal computer or a work machine and you are bound to some Enterprise JAMF, MDM, active directory list (?)


If personal machine are you logged into your Admin account? I do not remember having to give permission to change shell (but I could be wrong.)— admin/user account is default unless you added a Standard account... re: Shell issue.



I know nothing of scaling in Preview needed via the command line— what I am saying— out of curiosity— I read no default preference for the "old" command as you presented it...(?) macOS 13.2.1 or otherwise.



See Preview>Settings> for making changes, see both Image and PDF for user preferences, make changes to suit your needs:



Mar 26, 2023 3:23 PM in response to leroydouglas

leroydouglas:

This is my personal computer. I am logged into my Admin account and my password works whenever I have to make changes, like adding an app. I don't know why it asked for my password and then gave me s––t about it. Maybe it had something to do with selecting the key symbol (something I'd never seen before) and hitting enter/return. I just don't know if all the wording means that the system won't recognize my password now. Not sure what to test with.


As far as the Preview Scaling issue is concerned, I should probably ask that in a different topic area.

Mar 26, 2023 5:27 PM in response to normando

normando wrote:

Not sure where to go from here. Help needed.

Just ignore it and don't bother trying to do that anymore. That website has a date of 2013. I can virtually guarantee that it won't work on a modern computer.


I strongly suggest that you don't try to follow instructions you find on the internet. What you see on the internet isn't true and is often dangerous.

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.

Problem with Terminal after running `chsh -s /bin/zsh`

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