Terminal Window asking for password when opening

I don't know what happens but everytime I open a terminal window its ask me for password. If I type my admin password it starts saying that can't found my ~ directory and starts in :/ instead of :~

It is also showing ttys001 instead of 000 as usual.

I don't know what it is, I think it have some relation with closing terminal windows without logging out of a ssh section, but I don't know how to resolve it. I tried reboot, "exit", delete com.apple.terminal

Any sugestion?

MAC Pro, Mac OS X (10.6.2)

Posted on Jan 15, 2010 12:14 PM

Reply
6 replies

Jan 15, 2010 2:02 PM in response to sgobin

sgobin wrote:
I don't know what happens but everytime I open a terminal window its ask me for password. If I type my admin password it starts saying that can't found my ~ directory and starts in :/ instead of :~

It is also showing ttys001 instead of 000 as usual.

I don't know what it is, I think it have some relation with closing terminal windows without logging out of a ssh section, but I don't know how to resolve it. I tried reboot, "exit", delete com.apple.terminal


This is just a wild guess, but might there be a "sudo" command in a file in your home directory that's run when you launch a Terminal session, such as .bash_profile, .bash_login, or .profile? (This list assumes that you're using bash as your shell.)

Jan 25, 2010 8:10 AM in response to sgobin

I discovered the same problem this morning. And I have the same question.

I did not make any changes that I am aware of, and I don't use terminal very often - in fact, I really only use it to telnet to another machine on our network.

I think I used this about three weeks ago and it was just fine. Did a system update cause this?

RR

Jan 25, 2010 9:29 AM in response to sgobin

Hi

I really don't know what I did but everything is normal again. The are two possibilities, but I don't know the right one. First I thought it could be a "lock" command and tryed every cmd+letter. I know, too much crazy.

The second that I think is what solves the problem is to ssh again in the remote machine and then logout. But you have to login with the same username.

One of this things solved the problem or at least I think it solved.

Jan 26, 2010 11:51 AM in response to sgobin

Uh ... same here. Wow.

The one thing I did (taking a cue from BobHarris) was to go into Terminal Prefs under the Advacned tab and uncheck the one "run" command that I saw in there. But it didn't seem to do any good at the time. But now/today Terminal is working as it should I can once again telnet with style.

I start to get very uncomfy with unexplained behavior from my computer.

RR

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal Window asking for password when opening

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.