{"id":9587,"date":"2013-01-23T08:00:56","date_gmt":"2013-01-23T06:00:56","guid":{"rendered":"http:\/\/funrecycler.com\/?p=9587"},"modified":"2013-01-23T08:00:56","modified_gmt":"2013-01-23T06:00:56","slug":"temporare-proxyauthentifikation-unter-ubuntu","status":"publish","type":"post","link":"https:\/\/funrecycler.com\/index.php\/2013\/01\/23\/temporare-proxyauthentifikation-unter-ubuntu\/","title":{"rendered":"tempor\u00e4re Proxyauthentifikation unter Ubuntu"},"content":{"rendered":"<p><a href=\"http:\/\/funrecycler.com\/wp-content\/uploads\/2012\/04\/server.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-9728\" title=\"server\" alt=\"\" src=\"http:\/\/funrecycler.com\/wp-content\/uploads\/2012\/04\/server.png\" width=\"128\" height=\"128\" \/><\/a>Ab und zu ist die Situation so, dass man sich nur tempor\u00e4r f\u00fcr die aktuelle Session am Proxy authentifizieren muss.<br \/>\nDabei kann man schnell die <strong>http_proxy<\/strong> Variable setzen. Schaut einem dabei eine zweite Person \u00fcber die Schulter, ist das Kennwort zur \u00c4nderung freigegeben.<br \/>\nAlternativ kann man das aber auch \u00fcber ein kleines Script erledigen. Nat\u00fcrlich ist das Proxykennwort immer noch in der Variable, aber dazu muss man erst einmal an die Tastatur kommen. Weiterhin landet nichts im History File.<\/p>\n<pre>gestartet wird das Script \u00fcber . setproxy<\/pre>\n<p>\/user\/setproxy.sh<\/p>\n<pre>#!\/bin\/bash\nUSER=\" \"\nPASS=\" \"\necho \"Please enter the USERNAME like User :\"\nread -p \"Username:\" USER\n# echo \"Please enter the PASSWORD :\"\nread -s -p \"PASSWORD(hidden): \" PASS\nif test $# -eq 0\nthen\nexport http_proxy=\"http:\/\/domain\\\\$USER:$PASS@IP:Port\/\"\nexport https_proxy=\"http:\/\/domain\\\\$USER:$PASS@IP:Port\/\"\nexport ftp_proxy=\"http:\/\/domain\\\\$USER:$PASS@IP:Port\/\"\nelse\necho \"setproxy.sh without options\"\nfi<\/pre>\n<p>Nach dem\u00a0Script\u00a0sollten die drei Variablen f\u00fcr die aktuelle Session funktionieren. Optimal ist das Konstrukt z.b. f\u00fcr ein apt-get update oder \u00e4hnliche Aufgaben.<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ab und zu ist die Situation so, dass man sich nur tempor\u00e4r f\u00fcr die aktuelle Session am Proxy<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,9,16,18,20],"tags":[1311,1618,2132,2611,2743],"class_list":["post-9587","post","type-post","status-publish","format-standard","hentry","category-kniffe-und-tricks","category-linux-computer-und-technik","category-software","category-techniknews","category-tutorial","tag-http-proxy","tag-linux","tag-proxy","tag-temporare-proxyauthentifikation-unter-ubuntu","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/posts\/9587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/comments?post=9587"}],"version-history":[{"count":0,"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/posts\/9587\/revisions"}],"wp:attachment":[{"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/media?parent=9587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/categories?post=9587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/tags?post=9587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}