Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 5 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!

enter image description here

share|improve this answer
In my case, I updated my system, and the update included "command line fixes", after rebooting iTerm didn't work. Changing the preferences as described by CMDabado fixed my problem. I've updated the answer to include a screenshot. – OscarRyz Feb 24 '15 at 16:27

I had the same error, and the cause was that my PATH variable wasn't set correctly (I had meddled with it). Restoring a proper value using setenv fixed the issue. If you have meddled with your launchd path, you must edit it with launchctl.

In a terminal:

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

You may have to add the path to your /etc/launchd.conf file, and restart your computer as well. See for more information.

share|improve this answer
Please guide us how to set the right value. – Rob Apr 14 '14 at 9:26
Y'a right, here you go!. – Martin Apr 17 '14 at 8:18
thanks Martin! that was my issue – Cypress Frankenfeld Jun 20 '14 at 21:42

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.