Locked password on Terminal

Macorlan -  
_Ritchi_ Posted messages 21192 Registration date   Status Contributeur Last intervention   -
Hello there,

when I enter a sudo command in Terminal, the application asks for my password but shows a small key and refuses to execute anything when I enter the password. I don't have this issue on my old MacBook for the same command. Any advice or solution? Thank you!

1 réponse

_Ritchi_ Posted messages 21192 Registration date   Status Contributeur Last intervention   6 125
 
Hello

Maybe the activation of the root user has not been done?
Here is what Apple recommends to do this: https://support.apple.com/fr-fr/HT204012

Ritchi
0
Macorlan
 
Thank you Ritchi. I tried to follow Apple's recommendations but I couldn't find the option to activate the root user in the directory utility. So I'm stuck.
0
_Ritchi_ Posted messages 21192 Registration date   Status Contributeur Last intervention   6 125
 
Questions:
- What command do you type in the Terminal?
- I don't understand the need to activate the root user in the directory utility: can you explain what your need is?
0
Macorlan
 
This command:
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts

This is actually the procedure recommended by Apple.
0
_Ritchi_ Posted messages 21192 Registration date   Status Contributeur Last intervention   6 125
 
When you run this command, the superuser root password must be typed, but no characters will be displayed: you need to type it blindly.
Question: have you activated the superuser root account?
Another question: why would you want to modify the /etc/hosts file?
0