{"id":31528,"date":"2017-10-27T14:46:12","date_gmt":"2017-10-27T14:46:12","guid":{"rendered":"http:\/\/blogmed.antonini.med.br\/?p=31528"},"modified":"2021-04-02T04:56:01","modified_gmt":"2021-04-02T04:56:01","slug":"adicionar-usuario-comum-ao-grupo-sudo-no-ubuntu","status":"publish","type":"post","link":"https:\/\/antonini.ddns.net\/?p=31528","title":{"rendered":"Adicionar usu\u00e1rio comum ao grupo SUDO no Ubuntu"},"content":{"rendered":"<p style=\"text-align: justify;\">Primeiro, instale o sudo (se n\u00e3o tiver o pacote):&nbsp;<\/p>\n<p style=\"text-align: justify;\"><strong>apt-get install sudo<\/strong>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Depois, adicione o seu usu\u00e1rio ao grupo &#8220;sudo&#8221;. Para adicionar o usu\u00e1rio &#8220;xyz&#8221; ao grupo &#8220;sudo&#8221;:&nbsp;<\/p>\n<p style=\"text-align: justify;\"><strong>gpasswd -a <em>usu\u00e1rio<\/em> sudo<\/strong>&nbsp;<\/p>\n<p style=\"text-align: justify;\">ou<\/p>\n<p style=\"text-align: justify;\"><strong>addgroup nome_do_usuario root<\/strong><\/p>\n<p style=\"text-align: justify;\">Se quiser fazer do usu\u00e1rio o \u00fanico com acesso SUDO:&nbsp;<\/p>\n<p style=\"text-align: justify;\"><strong>nano \/etc\/sudoers<\/strong>&nbsp;<\/p>\n<div class=\"codigo\" style=\"text-align: justify;\"><span class=\"comentario\"># Allow members of group sudo to execute any command<\/span><br \/>\n<strong>%sudo&nbsp;&nbsp;ALL=(ALL:ALL) ALL<\/strong><\/div>\n<p style=\"text-align: justify;\">No lugar de &#8220;sudo&#8221;, substituir pelo nome do usu\u00e1rio. Neste exemplo,&nbsp;<strong>xyz<\/strong>:&nbsp;<\/p>\n<div class=\"codigo\" style=\"text-align: justify;\"><span class=\"comentario\"># Allow members of group sudo to execute any command<\/span><br \/>\n%<strong>usu\u00e1rio<\/strong>&nbsp;&nbsp;ALL=(ALL:ALL) ALL<\/div>\n<p style=\"text-align: justify;\">Pronto!&nbsp;<\/p>\n<p style=\"text-align: center;\">[<a href=\"javascript:history.go(-1)\">Voltar<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Primeiro, instale o sudo (se n\u00e3o tiver o pacote):&nbsp; apt-get install sudo&nbsp; Depois, adicione o seu usu\u00e1rio ao grupo &#8220;sudo&#8221;. Para adicionar o usu\u00e1rio &#8220;xyz&#8221; ao grupo &#8220;sudo&#8221;:&nbsp; gpasswd -a usu\u00e1rio sudo&nbsp; ou addgroup nome_do_usuario root Se quiser fazer do usu\u00e1rio o \u00fanico com acesso SUDO:&nbsp; nano \/etc\/sudoers&nbsp; # Allow members of group sudo to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-31528","post","type-post","status-publish","format-standard","hentry","category-informatica"],"_links":{"self":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/31528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31528"}],"version-history":[{"count":4,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/31528\/revisions"}],"predecessor-version":[{"id":31531,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/31528\/revisions\/31531"}],"wp:attachment":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}