Asking for a password when trying to add an entry to /etc/hosts

I am trying to add an entry to /etc/hosts using Terminal. When I type the command: sudo nano /etc/hosts it asks me for a password. I have never set a password so I have no idea what this would be. My admin pw is blank (I just hit enter) and this is not working. Is there a defaut password or how can I reset this? Thanks

This would be your admin account password. You must set one.
Forgot Your Account Password
For Lion, Mountain Lion, or Mavericks
    Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
     When the menubar appears select Terminal from the Utilities menu.
     Enter resetpassword at the prompt and press RETURN. Follow
     instructions in the dialog window that will appear.
     Or see Reset a Mac OS X 10.7 Lion Password, OS X Mountain Lion- Reset a login password,
     and OS X Lion- Apple ID can be used to reset your user account password.
For Snow Leopard and earlier with installer DVD
     Mac OS X 10.6- If you forget your administrator password
For Snow Leopard and earlier without installer DVD
    How to reset your Mac OS X password without an installer disc | MacYourself

Similar Messages

  • My MacBook Pro is asking for a password, when trying to play DVD. Anybody experienced that before.

    One of user's MacBook Pro is asking for a password, when trying to play DVD. Anybody experienced that before?
    Maybe the DVD itself is password protected, the user is travelling abroad.
    Thank you in advance

    Hi m,
    My guess is the DVD is from another region than the one the optical drive is set to. Region changes are limited to 5 total, so it asks for the admin password to make sure you want to do it/allow it. After #5, the drive is locked to that region forever.

  • Why am I asked for a password when trying to use about;config, where is the password set and can I change/delete this?

    I tried to use about:config, but I was asked for a password. I don't remember entering a password and have never used the master password function. Where has this come from, and how can I change the password or get rid of the need for a password?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Wireless Router asking for different password when trying to change settings

    I have an "old" wireless router Linksys BEFW11S4 V2.
    I am trying to change settings using the web interface.
    I can get in using the "admin" password but as soon as I try to change anything (such as SSID, security, etc) and click "Apply", it asks me for a password.  This time, the "admin" password doesn't work and I get to a red screen saying I entered a wrong password.  I reseted my router and came back to the default but still, I get the same thing.
    ...any clues anyone?
    Thanks.

    Try upgrading the firmware from ftp.linksys.com/pub/network ..also after upgrade ...reset the router & reconfigure it ... See if it works ...

  • Why does my iMac now ask for a password when trying to create a folder in Finder?

    Hi guys
    My iMac has started to ask me for my login password when I try and create a new folder using Finder. I concert folders on the desktop and drag to the correct location in Finder and I can also create folders in the tree view of Adobe Bridge both without having to enter a password. Any suggestions?
    Many thanks

    Give this a try:
    Reset User Permissions and ACLs
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    From the Utilities menu select Terminal. At the Terminal prompt enter: resetpassword. Press RETURN. When the window opens select your startup drive where it says "Select the volume containing the user account:" At the bottom of the window you will see, "Reset Home folder permissions and ACLs." Click on the Reset button.

  • Asking for username & password when trying to download podcast

    i am trying to download a new podcast to which I have been subscribing for the last year or so and it is asking me for a username and password. I have just recently updated my username for my ADSL login and am not sure whether this would be the reason.

    This would be your admin account password. You must set one.
    Forgot Your Account Password
    For Lion, Mountain Lion, or Mavericks
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password, OS X Mountain Lion- Reset a login password,
         and OS X Lion- Apple ID can be used to reset your user account password.
    For Snow Leopard and earlier with installer DVD
         Mac OS X 10.6- If you forget your administrator password
    For Snow Leopard and earlier without installer DVD
        How to reset your Mac OS X password without an installer disc | MacYourself

  • I keep getting asked for apple password when trying to play music

    I keep getting apple password login box everytime i try to use phone or play music

    You have to log into your ID/account to redeem the give card.
    Have you logged into your account?
    Is the gift card for the same country you are located?

  • HT201269 everytime i want to restore my previews backup to my new iphone, itunes asks for my password, when i enter my password it tells me my password is incorect, but its not!

    everytime i want to restore my previews backup to my new iphone, itunes asks for my password, when i enter my password it tells me my password is incorrect, but its not! i have even changed my password. but still nothing! I get the same error from itunes!!!!

    Try using your computer password. I tried any password I could think of relating to my phones, but it was none of them; it was, in fact, my computer password.

  • IBook no longer asking for a password when waking from sleep or screensaver

    My iBook was fine until I installed the Security Update 2006-002 via software update. After the "required" reboot (reboot #1) everything functioned as normal.
    On a subsequent reboot (#2) and several other reboots trying to correct the problem (#3-#5) I've found that my iBook no longer asks for a password when coming out of the screensaver, or when waking from sleep.
    Yes, I have checked the security pref panel every time and have ensured the checkbox is checked. I even Sudo'd the panel just to be sure.
    I downloaded the aforementioned security update and re-applied it. It corrected the problem during the same "required" reboot (#1), but after rebooting the computer a 2nd and 3rd time the problem has came up again.
    I wish my iBook wasn't sick! Thanks, I tried searching as best as I could to see if this is a repost.
    iBook G4 1.2 Mac OS X (10.4.5) All updates via Software Update
    iBook G4 1.2   Mac OS X (10.4.5)  

    I don't have a specific fix but this generalized fix seems to take care of most problems for me. Download Cocktail, Onyx or MainMenu then run Rebuild Launch Services database, the maintenance (cron) scripts, clean all caches then Repair Permissions and restart.
    To test it don't keep restarting, that's extra wear and tear on the computer, just put it to sleep and wake it or log out then back in.
    If that doesn't work get Disk Warrior and rebuild the directory.
    And if that doesn't work do an archive and install then one big upgrade.
    But don't go past running one of those three utilities until you see if someone has a better fix for you. It might be as simple as trashing a preferences file.

  • My mac keeps asking for a password when I try to install adobe flash player and even with the hint I

    My mac keeps asking for a password when I try to install adobe flash player. Even with the hint I'm not getting it and also tried uninstall and the same thing occurred.

    It's referring to the MAC password that you have setup.
    A software prompts for a password only when there are restrictions set on the user account for unauthorised access to system files and folders.

  • Cant receive my yahoo mail on my latest ipad, keeps asking for my password, when I respond same message- password

    Suddenly can't receive my yahoo mail on my latest ipad, keeps asking for my password, when i
    put it in,same message flashes up, reset does not work, also waiting for apple time lapse, still does not want to give me my yahoo mail on this format, tried talking to apple online contact, cut off, I'm receiving through safari, nothing through my email app

    Give it time. Yahoo has been doing things to their servers that often muck up the Mail app. Usually it takes 24-48 hours to run its course then it'll work again.
    if it doesn't clear up by the end of the weekend, you can remove and readd your account, but chances are it'll just start to work.

  • Cannot delete the Folder on the desktop after Mavericks update. when I try to delete it, it is asking for logon password, When I give the logon password, it plays a sound of moving to Trash, but the folder still remains on the desktop

    Cannot delete the Folder on the desktop after Mavericks update. when I try to delete it, it is asking for logon password, When I give the logon password, it plays a sound of moving to Trash, but the folder still remains on the desktop
    Please help

    It is a folder which I have created. Name is "SAP".
    I copied some of my office stuff and then deleted the contents inside the folder. But I couldnt delete the folder SAP.
    This is happening after the Mavericks update.

  • I am no longer being asked for a password when downloading an app, big problem with kids

    I am no longer being asked for a password when downloading an app or music in iTunes, big problem with kids. How do I enable

    To elaborate further, in those restrictions you can specify exactly what types of actions you would like to restrict.
    I think you'll find this accomplishes your objective.

  • I get asked for a password when i did not yet set one (after a system reset for the same problem)

    I am getting asked for a password when i have yet to set one.  I have already done a reset and am still getting prompted for a password, which I do not know.

    If you can't remember the Restrictions passcode you have to either:
    - Restore the iPod from a backup that does not have the passcode, or
    - Restore the iPod to factory settings/new iPod.
    iTunes: Backing up, updating, and restoring iOS software

  • Mac Mail no longer asks for a password when opening gmail

    Hello all,
    When I try and open my email account the password box no longer pops up.Don't know what happened.I use gmail and it always worked fine.Can anyone help me with this?Thank you very much.All reponses are apreciated.

    In Mail Preferences, Accounts item: I tried to delete the password (but that did not save). I got this idea from some Mail Help item that I cannot seem to find again. I cannot recall how I did it in Snow Leopard, but I had it set to ask for a password that was used solely for Mail. It would not download anything until I entered that password. Note: I am not on a network; just the single user of the MacPro. Thank you for any guidance you might be able to offer.

Maybe you are looking for