Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Whenever I try to open a new terminal window in iTerm, it closes right away after displaying this:

## exec failed ##
argpath=login error=No such file or directory

Does anyone know what is causing this? Thanks!


  • The terminal is working fine
  • The default command for new iTerm sessions is set to Login shell
share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

Not sure why it didn't work with Login shell selected, but I changed it to ⌘ command and invoked bash -l or /bin/bash -l to make it work the same way. Hope this helps anyone else who has the same problem!

share|improve this answer
add comment

I had the same error, and the cause was that my PATH variable wasn't set correctly in launchctl (I had meddled with it). Restoring a proper value using setenv fixed the issue.

Here's what I've done. In a terminal:

setenv /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

And then I logged out/in for good measure.

share|improve this answer
Please guide us how to set the right value. –  Rob Apr 14 at 9:26
Y'a right, here you go!. –  Martin Apr 17 at 8:18
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.