{"id":8219,"date":"2021-09-10T15:19:10","date_gmt":"2021-09-10T22:19:10","guid":{"rendered":"https:\/\/www.dognmonkey.com\/techs\/?p=8219"},"modified":"2021-09-10T15:19:33","modified_gmt":"2021-09-10T22:19:33","slug":"how-to-create-macos-app-to-run-sudo-command-with-password","status":"publish","type":"post","link":"https:\/\/www.dognmonkey.com\/techs\/how-to-create-macos-app-to-run-sudo-command-with-password.html","title":{"rendered":"How To Create macOS App To Run Sudo Command with Password"},"content":{"rendered":"<p><em>This is how I created app that runs shell scripts with sudo command that requires password.<\/em><\/p>\n<blockquote><p><b>do shell script<\/b> &#8220;sudo diskutil mount \/dev\/disk0s1&#8221; <b>with<\/b> administrator privileges<\/p><\/blockquote>\n<p style=\"text-align: center;\"><div class=\"youtube-player\" data-id=\"3CoJ5u1o8V0\"><\/div><\/p>\n<ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This is how I created app that runs shell scripts with sudo command that requires password. do shell script &#8220;sudo diskutil mount \/dev\/disk0s1&#8221; with administrator privileges<\/p>\n","protected":false},"author":1,"featured_media":8221,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[218,541],"tags":[1527,1529,1526,1525,1528],"class_list":["post-8219","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mac-software","category-mac-wanna-be","tag-app","tag-password","tag-shell-script","tag-sudo","tag-sudo-command"],"views":318,"_links":{"self":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/8219","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=8219"}],"version-history":[{"count":2,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/8219\/revisions"}],"predecessor-version":[{"id":8223,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/8219\/revisions\/8223"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/media\/8221"}],"wp:attachment":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/media?parent=8219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/categories?post=8219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/tags?post=8219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}