HT4103: Mac OS X: sudo command requires a non-blank admin passwordLearn about Mac OS X: sudo command requires a non-blank admin password
Currently Being ModeratedMay 7, 2013 3:56 AM (in response to KezzaB3)
I need to preview files being migrated before changing the DNS. The instructions were to go to Terminal and put in sudo nano /private/etc/hosts & then my password. I closed the window to find my password, now its not prompting me for the password.
When you open the Terminal.app the application creates an instance of your shell in that window (screen). When you close the window that instance of your shell is killed. So, when you create a new window another instance of your shell is created. Thus, the new process does not "remember" what you were "typing" in the process that was killed.
If you were to open multiple windows in the Terminal.app each window has its own instance of your shell. Each act independently of each other.
Currently Being ModeratedMay 7, 2013 5:38 AM (in response to Mark Jalbert)
Thank you Mark. I'm not sure what I do now as there is no password prompt. How do I proceed? And if this is a temporary method to view websites, I have no idea how to access and reverse any instructions. HostGator cannot assist so I'm in limbo.
Currently Being ModeratedMay 7, 2013 6:06 AM (in response to KezzaB3)
Why sudo nano? Are you trying to modify the hosts file? Can you post a link to the instructions you are using?
What does this mean?
I need to preview files being migrated before changing the DNS.
Currently Being ModeratedMay 7, 2013 6:31 AM (in response to WZZZ)
Yes am trying to modify host files.
Instruction in an email (little garbled with font):
"Step 1 â€“ Open the Terminal.app
Either by start typing Terminal on the Spotlight, or by going into Applications -> Utilities -> Terminal.
Step 2 â€“ Open the hosts file
Open the hosts by typing on the Terminal that you have just opened:
sudo nano /private/etc/hosts
Type your user password when prompted.
Step 3 â€“ Edit the hosts file
The hosts file contains some comments (lines starting with the # symbol), as well as some default hostname mappings (e.g. 127.0.0.1 â€“ localhost).
Simply append your new mappings underneath the default ones.
You can navigate the file using the arrow keys.
XXX.XXX.XXX.XXX DOMAIN.COM WWW.DOMAIN.COM
Replace DOMAIN.COM with your actual domain name. Additional domains, sub-domains or addon domains can be added at the end of the line separated by spaces.
Step 4 â€“ Save the hosts file
When done editing the hosts file, press control-o to save the file.
Press enter on the filename prompt, and control-x to exit the editor.
Step 5 â€“ Flush the DNS cache
On Leopard you can issue a simple Terminal command to flush the DNS cache, and have your host file changes to take immediate effect:
NOTE: this ONLY works on the computer where you changed the 'hosts' file....."
Currently Being ModeratedMay 7, 2013 6:56 AM (in response to KezzaB3)
After you enter
sudo nano /private/etc/hosts
you should be prompted for your admin password. Are you? What's happening then exactly? And is your account standard or admin?'
Note: when you enter your admin password you won't see it anywhere. Just enter it and hit return. And if you're running from a standard account, you'll have an extra step to take. Post back if that's the case. And don't close the window. Keep going.
Currently Being ModeratedMay 7, 2013 3:06 PM (in response to WZZZ)
<you should be prompted for your admin password. Are you?>
No, as I keep saying there is no prompt.
<What's happening then exactly? >
Nothing. the shell is empty and there is no prompt or anything just the square cursor>
<And is your account standard or admin?'>
Not sure but I think admin but the look of the password setup.
- how do I get the password prompt? -
Currently Being ModeratedMay 7, 2013 3:11 PM (in response to KezzaB3)
Maybe someone else will come along who can fix your Terminal/Shell issue. But if not ask over here.
Currently Being ModeratedMay 8, 2013 3:28 AM (in response to KezzaB3)
OK, first quit the Terminal application.
Navigate to ~/Library/Application Support/ . If there is a folder called "Terminal" then drag the folder to your desktop.
Navigate to ~/Library/Preferences/ . Drag the file com.apple.Terminal.plist to your desktop.
Log out of your account and log back in. Open the Terminal.app.
Currently Being ModeratedMay 8, 2013 9:30 AM (in response to Mark Jalbert)
Thank you Mark, I bow down and kiss your feet!
All solved. Much appreciated.