{"id":4187,"date":"2014-11-11T21:53:49","date_gmt":"2014-11-11T21:53:49","guid":{"rendered":"http:\/\/www.dognmonkey.com\/techs\/?p=4187"},"modified":"2015-03-26T00:51:34","modified_gmt":"2015-03-26T00:51:34","slug":"set-password-for-sudo-commands-permanently-os-x","status":"publish","type":"post","link":"https:\/\/www.dognmonkey.com\/techs\/set-password-for-sudo-commands-permanently-os-x.html","title":{"rendered":"Set Password For Sudo Commands Permanently OS X"},"content":{"rendered":"<p style=\"text-align: center;\"><em>When we write scripts, we want to embed sudo command with password automatically for our username. We need to edit the hidden etc\/sudoers to add (usersname is our login name).<\/em><\/p>\n<blockquote>\n<p style=\"text-align: center;\">usersname ALL=(ALL) NOPASSWD: ALL<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\">\u00a0 \u00a0<a class=\"preview\" href=\"\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2014\/11\/sudoer_file.png\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4660\" src=\"\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2014\/11\/sudoer_file-227x300.png\" alt=\"sudoer_file\" width=\"227\" height=\"300\" srcset=\"https:\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2014\/11\/sudoer_file-227x300.png 227w, https:\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2014\/11\/sudoer_file.png 666w\" sizes=\"auto, (max-width: 227px) 100vw, 227px\" \/><\/a>\u00a0 \u00a0\u00a0<a class=\"preview\" href=\"\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2014\/11\/sudoers.png\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4646\" src=\"\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2014\/11\/sudoers-300x149.png\" alt=\"sudoers\" width=\"250\" height=\"124\" srcset=\"https:\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2014\/11\/sudoers-300x149.png 300w, https:\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2014\/11\/sudoers.png 490w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/Edeeq_g9L3E\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p style=\"text-align: center;\"><ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When we write scripts, we want to embed sudo command with password automatically for our username. We need to edit the hidden etc\/sudoers to add (usersname is our login name). usersname ALL=(ALL) NOPASSWD: ALL \u00a0 \u00a0\u00a0 \u00a0\u00a0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[541,559],"tags":[562,558],"class_list":["post-4187","post","type-post","status-publish","format-standard","hentry","category-mac-wanna-be","category-os-x-for-beginners","tag-sudo-password-setting","tag-sudoers"],"views":259,"_links":{"self":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/4187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/comments?post=4187"}],"version-history":[{"count":3,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/4187\/revisions"}],"predecessor-version":[{"id":4662,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/4187\/revisions\/4662"}],"wp:attachment":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/media?parent=4187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/categories?post=4187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/tags?post=4187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}