Secure Keyboard Entry enabled each time I start iTerm

7,345 views
Skip to first unread message

David Rees

unread,
Oct 8, 2016, 12:03:09 AM10/8/16
to iterm2-discuss
Secure Keyboard Entry seems to be re-enabled each time I start iTerm. Is there a global setting I am missing that I can set to it default to disabled?


George Nachman

unread,
Oct 13, 2016, 12:55:08 PM10/13/16
to iterm2-...@googlegroups.com
If you turn off secure keyboard entry in the iTerm2 menu, that should fix it. 

On Fri, Oct 7, 2016 at 9:03 PM, David Rees <da...@ubiqsoft.com> wrote:
Secure Keyboard Entry seems to be re-enabled each time I start iTerm. Is there a global setting I am missing that I can set to it default to disabled?


--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Rees

unread,
Oct 13, 2016, 9:34:57 PM10/13/16
to iterm2-...@googlegroups.com
I did turn it off. And the next time I start iTerm2 it is on again. Just to prove I'm not crazy here is a screencast:

--
You received this message because you are subscribed to a topic in the Google Groups "iterm2-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/iterm2-discuss/gbteFdzQV8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to iterm2-discuss+unsubscribe@googlegroups.com.

George Nachman

unread,
Oct 14, 2016, 7:48:45 PM10/14/16
to iterm2-...@googlegroups.com
There's a lot of logging around this code so it should be easy to diagnose. Turn on debug logging by toggling the menu item iTerm2>Toggle debug logging. Turn secure input off from the menu item, switch to another app, and switch back to iTerm2, confirming it is back on. Toggle debug logging off the same way you turned it on. Now you have /tmp/debuglog.txt. Do:

grep -i secure /tmp/debuglog.txt

You should get a nice little narrative. Let me know what it said, either here or in an issue (https://iterm2.com/bugs)

David Rees

unread,
Oct 17, 2016, 9:36:46 PM10/17/16
to George Nachman, iterm2-...@googlegroups.com
Unfortunately Toggle Debug Logging doesn’t seem to work across iTerm restarts. So I am not getting a debug log.

To be clear, here are my steps:
1 start iTerm2
1b Secure Keyboard Logging is on
2 Turn Secure Keyboard Logging off
2b Secure Keyboard Logging is off and stays off while iTerm is running
3 Quit iTerm2
4 Start iTerm2
4b Secure Keyboard Logging is on again 

George Nachman

unread,
Oct 20, 2016, 2:59:03 PM10/20/16
to iterm2-...@googlegroups.com
Somehow I missed that you were actually restarting iTerm2. Please do this:

1. Turn off secure keyboard entry
2. quit iTerm2
3. Run this in terminal.app:

defaults read com.googlecode.iterm2 "Secure Input"

What does it show?

Also, do you have "Prefs > General > Load preferences from a custom folder or URL" turned on?

David Rees

unread,
Oct 24, 2016, 3:41:56 PM10/24/16
to iterm2-discuss, gnac...@llamas.org

I tracked down the problem. My company (Google) has some sort of admin policy that is setting it to true. I'm not sure how it was actually setting it each time, but I found the "knob" that turns off the behavior. So I am good now.


Thanks for your time diagnosing. It hadn't occurred to me they would be affecting iTerm2 since I installed it myself. But since everyone here uses it I guess it's not a surprise :).

To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages