Skip navigation

Terminal Asks for password

2115 Views 7 Replies Latest reply: Nov 28, 2013 10:40 AM by BDAqua RSS
Mouchel Calculating status...
Currently Being Moderated
Mar 28, 2011 1:52 AM
Hi,

When I open the terminal app it prompts for a password before it displays the prompt. I can type my password, then the prompt is displayed and terminal appears to run as expected.
I have compared the preferences to another machine that does not ask for the password and they are the same. I have run a permissions repair and removed the ~/library/preferences/com.apple.Terminal.plist but neither has fixed the problem.

Any suggestions as to what might be the issue?
Mac OS X (10.5.8)
  • BobHarris Level 6 Level 6 (12,505 points)
    Currently Being Moderated
    Mar 28, 2011 6:36 AM (in response to Mouchel)
    Either you have something in your .bash_profile (or .bash_login, or .profile) that is running a command that wants your password, or your terminal default session has been configured to ssh into another system (which could be localhost, aka yourself).

    So look at the shell initializations files I mentioned above. See what they are doing. You could always edit the shell initialization file and add

    set -x

    at the very beginning to see exactly what it is doing when you login. Remote the "set -x" when you are finished.

    To see if you have your Terminal preferences configured to ssh, you could enter the following

    printenv | grep ssh

    If you get

    SSH_CLIENT=::1 49801 22
    SSH_TTY=/dev/ttys001
    SSH_CONNECTION=::1 49801 ::1 22

    chances are you have been issuing the ssh command as part of your Terminal preferences.

    By the way, Terminal, Unix, X11, and command line command, ssh, rsync, etc... questions are best asked in the Mac OS X Technologies > Unix Forum
    <http://discussions.apple.com/forum.jspa?forumID=735>
    MacBook/10.6.6, iMac/i7/10.6.6 w/Magic Trackpad, Mac mini/10.5.6, iPod Touch(4thGen)/32GB/4.2.1, iBook/G4, MacBook Pro/Core2Duo, iMac/Core2Duo
  • ali811 Calculating status...
    Currently Being Moderated
    Sep 6, 2013 1:01 PM (in response to Mouchel)

    I had the same issue on my work machine where they use opendirectory for authentication and authorization. Restarting the opendirectory daemon fixed the issue.

  • Radiognome Calculating status...
    Currently Being Moderated
    Nov 26, 2013 3:03 AM (in response to ali811)

    After reading this, my biggest problem was 'how do I restart the opendirectory daemon'? I took the computer of the domain, and reconnected it, but that is hardly an elegant solution I think.

     

    Thanks..

  • ali811 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Nov 26, 2013 3:48 PM (in response to Radiognome)

    To restart opendirectory: Open Finder > Applications > Utilities > Activity Monitor.

     

    In Activity Monitor's search bar search for opendirectoryd, select opendirectoryd process and select Quit Process from View menu

  • Radiognome Level 1 Level 1 (0 points)
    Currently Being Moderated
    Nov 27, 2013 11:00 AM (in response to ali811)

    Thanks. Was looking for a launchctl-like command or something similar to my Linux daemons "/etc/init.d/[service] restart". Could not find something quickly. Never thought about Activity Monitor...

  • BDAqua Level 10 Level 10 (114,685 points)
    Currently Being Moderated
    Nov 28, 2013 10:40 AM (in response to Radiognome)

    In Terminal...

     

    man launchctl

     

    It'd be something like...

     

    $ sudo launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.plist

     

    $ sudo launchctl load /System/Library/LaunchDaemons/org.openldap.slapd.plist

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.