Currently Being ModeratedMar 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
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_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
Currently Being ModeratedNov 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.
Currently Being ModeratedNov 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
Currently Being ModeratedNov 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...
Currently Being ModeratedNov 28, 2013 10:40 AM (in response to Radiognome)
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