{"id":156,"date":"2008-10-21T10:42:04","date_gmt":"2008-10-21T02:42:04","guid":{"rendered":"http:\/\/blog.lolyco.com\/sean\/?p=156"},"modified":"2008-10-21T10:42:59","modified_gmt":"2008-10-21T02:42:59","slug":"cannot-execute-binbash-permission-denied","status":"publish","type":"post","link":"https:\/\/blog.lolyco.com\/sean\/2008\/10\/21\/cannot-execute-binbash-permission-denied\/","title":{"rendered":"Cannot execute \/bin\/bash: Permission denied"},"content":{"rendered":"<p>Just a quick note, just in case someone else sees this message. I got this error this morning when I logged in as a non-root user on a Slackware server I&#8217;d upgraded yesterday. In an act of blind faith, I used &#8216;slackpkg upgrade-all&#8217;, and then the fun began.<\/p>\n<p>Incidentally, if you&#8217;re in Malaysia, and you&#8217;re downloading Slackware packages at the 8kB\/s which seems to be all TM Net \/ Streamyx can manage with their &#8220;best effort&#8221; basis from nearby countries, download from Brazil &#8211; I get a reliable 180kB\/s on a 1Mbit\/s connection. Yes, that&#8217;s right folks. TM Net give you 5% of your rated download from any country in smuggling distance, but can max out your connection from the other side of the world! Answers on a postcard, please.<\/p>\n<p>Back to the problem. I tried some fairly obvious fixes to do with checking permissions on directories and executables, none seemed to work. Then I searched online and found <a title=\"Cannot execute \/bin\/bash Permission denied - solved!\" href=\"http:\/\/linuxgazette.net\/issue52\/okopnik.html\">http:\/\/linuxgazette.net\/issue52\/okopnik.html<\/a> where the same problem was traced to the permissions on \/lib\/ld-linux.so.2, or rather, the permissions on the file it links to. On my system, changing the permissions to 755 on \/lib\/ld-2.7.so didn&#8217;t allow me to login as a non-root user, but did give me errors like:<\/p>\n<p><code>error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory<\/code><\/p>\n<p>Much easier to track down! It seems slackpkg had installed several libraries in \/lib with insufficient permissions, all with the version string &#8220;2.7&#8221; in them. All these libraries seem to depend on \/lib\/ld-linux, according to ldd.<\/p>\n<p>I&#8217;d wish you &#8216;Have fun!&#8217;, but my eyes are still throbbing from staring at this error for so long.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just a quick note, just in case someone else sees this message. I got this error this morning when I logged in as a non-root user on a Slackware server I&#8217;d upgraded yesterday. In an act of blind faith, I used &#8216;slackpkg upgrade-all&#8217;, and then the fun began. Incidentally, if you&#8217;re in Malaysia, and you&#8217;re [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,20,3],"tags":[107,109,18,22],"class_list":["post-156","post","type-post","status-publish","format-standard","hentry","category-broken","category-fixed","category-software","tag-broken","tag-fixed","tag-server","tag-slackware"],"_links":{"self":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":3,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/156\/revisions\/159"}],"wp:attachment":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}