Results 1 to 15 of 15
  1. #1


    Member Since
    Mar 15, 2012
    Posts
    4
    Question Terminal not responding to my password
    Hello,

    I have been a mac user for quite sometime now and have recently bought an iMac 27inch. It's the first time i have tried out OS Lion and I have been having problems with Terminal. The thing is that when i enter a sudo command terminal asks me for my password. I know that Terminal doesn't type in the password, you just need to type it in your keyboard and hit the return key and that's supposed to work.

    I have tried everything and don't know what to do anymore. I have tried making my self a root password and entering it and it still doesn't work. I have also changed my admin password and it still doesn't work. I have even tried just pressing the return key without typing in anything and Terminal continues to say that its an invalid password or something of some sort.

    Can anyone can tell me what to do? It's kind of an emergency because i need it to install an application that i need for work!!! So, any ideas are welcome!

    Thanks!

  2. #2

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,742
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    As you correctly note, password prompts will not print back the keys you're typing for security purposes. Despite this, every key pressed is registered.

    The password you need to use is your user password. You mention that you're using a root and admin password - those won't work unless you are one of those users. If you are entering your password, it's possible that your sudoers file is improperly formatted. The problem here is that fix it, you have to have elevated privileges which you can get by using sudo. Can you tell us what the contents of /etc/sudoers is? You'll have to use root privileges to view it.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  3. #3


    Member Since
    Mar 15, 2012
    Posts
    4
    Thanks for replying so quickly!

    The thing is that I am using the administrator user and password when i enter it in Terminal. I have also tried changing the root password through the same user and putting it in Terminal and it still doesn't work. This is what Terminal displays me when i enter the command and password:

    sudo gdb /Volumes/'Autodesk'/xforce2012.app/Contents/MacOS/x-force
    Password:
    sudo: gdb: command not found

  4. #4

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,742
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    That's not a sudo problem - this error is telling you that gdb isn't installed. To get gdb, you'll need the Xcode developer tools (get them from the App Store). Once those are installed, go to Xcode > Preferences > Downloads and install the "Command Line Tools."
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  5. #5


    Member Since
    Mar 15, 2012
    Posts
    4
    ok thanks!, i'll try this!

  6. #6


    Member Since
    Mar 15, 2012
    Posts
    4
    THANK YOU SO MUCH! You are a lifesaver! I am totally grateful!

    I had already installed Xcode but never realized that i had to do that download for it to work.

    Thanks again!!!

  7. #7


    Member Since
    Mar 01, 2013
    Location
    Manhattan, NY
    Posts
    7
    Question Terminal not responding to admin password
    Quote Originally Posted by vansmith View Post
    That's not a sudo problem - this error is telling you that gdb isn't installed. To get gdb, you'll need the Xcode developer tools (get them from the App Store). Once those are installed, go to Xcode > Preferences > Downloads and install the "Command Line Tools."
    I am having the same type of problem. I am putting my admin pw into the terminal and I know it is correct, but it is not working.

    I put in su - (enter)
    Password: xxxxx (enter)

    I get this:

    Password:
    su: Sorry

    does anyone understand this?
    Thank you.

  8. #8

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,742
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Root access is disabled by default in OS X. Any reason you can't just use sudo?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  9. #9


    Member Since
    Mar 01, 2013
    Location
    Manhattan, NY
    Posts
    7
    Quote Originally Posted by vansmith View Post
    Root access is disabled by default in OS X. Any reason you can't just use sudo?

    Just ignorance! I got the commands I tried from someone who I think knows a bit more about pc's. How would I use the sudo command on a mac?

    Thank you for your quick reply

  10. #10

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,742
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Just put sudo in front of any command you want to execute with elevated privileges.

    I want to caution you here - elevating privileges can be a dangerous game if you don't know what's happening and/or you don't trust the source. Be careful.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  11. #11


    Member Since
    Mar 01, 2013
    Location
    Manhattan, NY
    Posts
    7
    ah..good advice, I think. Thank you. I might want to rethink making any changes here.

  12. #12

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,742
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    What are you trying to accomplish? We can certainly verify any suggestions.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  13. #13


    Member Since
    Mar 01, 2013
    Location
    Manhattan, NY
    Posts
    7
    I am going to be building a new website (on a new host) for a site that already exists. When the new site is finished, I will point the domain. In the meantime, I do not have a domain. I was told to go into the terminal to do something with the host file, so I could work on the site without the domain.

    Below is the instruction I was given. Does it look right to you?


    To begin, open a new 'Terminal' window

    type: su - (without the : mark)

    enter your admin or root password

    type: cd /private/etc/

    type: vim hosts

    use your arrow and page up/down keys to get to the end of the file

    hit your 'i' key (just the letter, not the ' marks)

    67.225.246.179 atlanticparasail.com [url=http://www.atlanticparasail.com]

    hit escape

    type: :wq (make sure to include the : mark, as this writes and quits the
    editor)

    then, bring up your atlanticparasail.com site in a new browser window



    Thank you.

  14. #14

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,350
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3
    The instructions are fine..you would just change it to "sudo vim hosts" and keep the rest the same..

    Also, you can always just write down the IP address on a note near your computer and type it directly into the browser..

    All you are doing here is making it so that you don't have to remember the IP address..
    --
    Regards
    ...Ashwin



    Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.

  15. #15


    Member Since
    Mar 01, 2013
    Location
    Manhattan, NY
    Posts
    7
    Thank you! Okay, that clarifies what they were having do. I had no idea it was just so I would not have to type the IP address in each time

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Terminal WONT accept my Password ?? Why . . . ?? Help please !!!!
    By TattooedMac in forum OS X - Operating System
    Replies: 13
    Last Post: 01-23-2014, 10:00 AM
  2. 4s password not responding
    By Bocat in forum iOS and Apps
    Replies: 1
    Last Post: 11-11-2011, 12:55 PM
  3. terminal command with password
    By vdfoo in forum Switcher Hangout
    Replies: 2
    Last Post: 10-11-2009, 04:34 AM
  4. Terminal Password Errors
    By tlpascoe in forum OS X - Operating System
    Replies: 0
    Last Post: 09-09-2009, 07:01 PM
  5. Can't Type Password in Terminal
    By WriterStitch in forum OS X - Operating System
    Replies: 2
    Last Post: 04-18-2009, 03:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •