{"id":6726,"date":"2012-03-26T10:20:23","date_gmt":"2012-03-26T14:20:23","guid":{"rendered":"http:\/\/www.schollnick.net\/wordpress\/?p=6726"},"modified":"2012-03-26T10:20:23","modified_gmt":"2012-03-26T14:20:23","slug":"open-terminal-illegal-shell-open-privateetcsudoers","status":"publish","type":"post","link":"http:\/\/www.schollnick.net\/wordpress\/2012\/03\/open-terminal-illegal-shell-open-privateetcsudoers\/","title":{"rendered":"can&#8217;t open the terminal?  illegal value for shell?  can&#8217;t open \/private\/etc\/sudoers?"},"content":{"rendered":"<p>One issue I have heard about, involves the \/etc\/ folder permissions being set to an &#8220;bad&#8221; value&#8230;<\/p>\n<p>For example, if you set \/etc\/ to 755, Mac OS X will not allow a shell session (terminal) to be opened&#8230; \u00c2\u00a0It will report &#8220;<strong>The Administrator has set your shell to an illegal value<\/strong>&#8220;. \u00c2\u00a0If you try an sudo command, you will see an error (&#8220;<strong>sudo: can&#8217;t open \/private\/etc\/sudoers: Permission denied sudo: no valid sudoers sources found, quitting<\/strong>&#8220;).<\/p>\n<p>What&#8217;s the easiest way to resolve this?<\/p>\n<p>If you are running 10.7, restart your system, and hold down the option key. \u00c2\u00a0This will bring up the boot device list, choose your recovery partition (&#8220;<strong>Recovery HD<\/strong>&#8220;). \u00c2\u00a0The &#8220;Mac OS X Utilities&#8221; menu will appear, highlight &#8220;<strong>Disk Utility<\/strong>&#8220;\u00c2\u00a0and hit Continue<strong>. \u00c2\u00a0 <\/strong>From the Disk Utilities left side bar, choose your hard drive (e.g. &#8220;Macintosh HD&#8221;). \u00c2\u00a0In the &#8220;First Aid&#8221; pane, click on &#8220;Repair Disk Permissions&#8221;.<\/p>\n<p>Repair Disk Permissions should repair the permissions issue, and allow you access to the Terminal \/ Shell sessions.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One issue I have heard about, involves the \/etc\/ folder permissions being set to an &#8220;bad&#8221; value&#8230; For example, if you set \/etc\/ to 755, Mac OS X will not allow a shell session (terminal) to be opened&#8230; \u00c2\u00a0It will report &#8220;The Administrator has set your shell to an illegal value&#8220;. \u00c2\u00a0If you try an <a class=\"read-more\" href=\"http:\/\/www.schollnick.net\/wordpress\/2012\/03\/open-terminal-illegal-shell-open-privateetcsudoers\/\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[5],"tags":[147,1831],"_links":{"self":[{"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/posts\/6726"}],"collection":[{"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/comments?post=6726"}],"version-history":[{"count":0,"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/posts\/6726\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/media?parent=6726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/categories?post=6726"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/tags?post=6726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->