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.
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....."
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.
<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? -
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.