{"id":31599,"date":"2019-02-14T20:15:27","date_gmt":"2019-02-15T02:15:27","guid":{"rendered":"https:\/\/gregladen.com\/blog\/?p=31599"},"modified":"2019-02-14T20:15:27","modified_gmt":"2019-02-15T02:15:27","slug":"writing-secure-shell-scripts","status":"publish","type":"post","link":"https:\/\/gregladen.com\/blog\/2019\/02\/14\/writing-secure-shell-scripts\/","title":{"rendered":"Writing Secure Shell Scripts"},"content":{"rendered":"<p>If you write shell scrips, you should check out Dave Taylor&#8217;s latest article in Linux Journal.<\/p>\n<p>He gives key examples of what can go wrong if you don&#8217;t pay attention to certain things.<\/p>\n<p>For example, if you have a dot in (especially at the start of) your PATH variable, you risk running a Trojan horse that snuck sneakily into your \/tmp directory.  If you want the dot, put it last.<\/p>\n<p>Anyway, a simple straight forward article with a few pieces of good advice: <a href=\"https:\/\/www.linuxjournal.com\/content\/writing-secure-shell-scripts\"><strong>Writing Secure Shell Scripts<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you write shell scrips, you should check out Dave Taylor&#8217;s latest article in Linux Journal. He gives key examples of what can go wrong if you don&#8217;t pay attention to certain things. For example, if you have a dot in (especially at the start of) your PATH variable, you risk running a Trojan horse &hellip; <a href=\"https:\/\/gregladen.com\/blog\/2019\/02\/14\/writing-secure-shell-scripts\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Writing Secure Shell Scripts<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":28748,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5028],"tags":[5861,67,1832,5860],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/gregladen.com\/blog\/wp-content\/uploads\/2018\/01\/Tux_Mono.svg_.png?fit=360%2C540&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p5fhV1-8dF","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/31599"}],"collection":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/comments?post=31599"}],"version-history":[{"count":1,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/31599\/revisions"}],"predecessor-version":[{"id":31600,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/31599\/revisions\/31600"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/media\/28748"}],"wp:attachment":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/media?parent=31599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/categories?post=31599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/tags?post=31599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}