Mac OS X problems and fixes
From ShawnReevesWiki
I've decided it's time to keep a repository of fixes for problems with Mac OS X, not with specific applications. Here it is.
Terminal reports you are not authorized
On 2012-04-07 I tried to open Terminal in Lion and got this new-to-me message: "You are not authorized to run this application. The administrator has set your shell to an illegal value" There are plenty of solutions suggested online, many involving resetting bashrc scripts or other configuration files, but what worked for me was to restart the system. I had a hint of the problem even before I tried to open Terminal—I was trying to connect to a MySQL server through a SSH tunnel and SSH told me I didn't exist. That problem also went away with the restart.