{"id":6231,"date":"2021-10-28T18:53:54","date_gmt":"2021-10-28T18:53:54","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=6231"},"modified":"2021-10-28T18:53:54","modified_gmt":"2021-10-28T18:53:54","slug":"how-to-add-user-to-sudoers-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2021\/10\/28\/how-to-add-user-to-sudoers-on-ubuntu-20-04\/","title":{"rendered":"How to Add User to Sudoers on Ubuntu 20.04"},"content":{"rendered":"<p>Create a New User<\/p>\n<p>Open the root user terminal and run the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# adduser username\n<\/pre>\n<p>Add a user to the sudoers file<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# usermod -a -G sudo rogerp\n<\/pre>\n<p>Add with visudo<\/p>\n<p>Login as root.<\/p>\n<p>Run<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# visudo\n<\/pre>\n<p>Add the user with:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nusername      ALL=(ALL:ALL) ALL\n<\/pre>\n<p>Save file.<\/p>\n<p>Ready to Go!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create a New User Open the root user terminal and run the following command: # adduser username Add a user to the sudoers file # usermod -a -G sudo rogerp Add with visudo Login as root. Run # visudo Add the user with: username ALL=(ALL:ALL) ALL Save file. Ready to Go!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-6231","post","type-post","status-publish","format-standard","hentry","category-administration"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/6231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=6231"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/6231\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=6231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=6231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=6231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}