{"id":505169,"date":"2022-10-30T19:00:00","date_gmt":"2022-10-30T16:00:00","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-add-a-user-to-the-sudoers-file-in-linux\/"},"modified":"2022-10-30T19:00:00","modified_gmt":"2022-10-30T16:00:00","slug":"how-to-add-a-user-to-the-sudoers-file-in-linux","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-add-a-user-to-the-sudoers-file-in-linux\/","title":{"rendered":"#How to Add a User to the sudoers File in Linux"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a291cc227858\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a291cc227858\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-add-a-user-to-the-sudoers-file-in-linux\/#%E2%80%9CHow_to_Add_a_User_to_the_sudoers_File_in_Linux%E2%80%9D\" >&#8220;How to Add a User to the sudoers File in Linux&#8221;<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-add-a-user-to-the-sudoers-file-in-linux\/#sudo_Your_Superpowered_Alter-Ego\" >sudo: Your Superpowered Alter-Ego<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-add-a-user-to-the-sudoers-file-in-linux\/#The_sudoers_File_and_visudo\" >The sudoers File and visudo<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-add-a-user-to-the-sudoers-file-in-linux\/#Add_a_New_sudo_User_in_Ubuntu_and_Other_Linux_Distros\" >Add a New sudo User in Ubuntu and Other Linux Distros<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-add-a-user-to-the-sudoers-file-in-linux\/#Limit_sudo_Privileges_by_Editing_the_sudoers_File\" >Limit sudo Privileges by Editing the sudoers File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-add-a-user-to-the-sudoers-file-in-linux\/#Whosoever_Holds_This_Command\" >Whosoever Holds This Command<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E2%80%9CHow_to_Add_a_User_to_the_sudoers_File_in_Linux%E2%80%9D\"><\/span>&#8220;How to Add a User to the sudoers File in Linux&#8221;<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<div>\n<!-- UNCACHED CONTENT --><\/p>\n<figure style=\"width: 1200px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage size-full wp-image-791996\" data-pagespeed-no-defer=\"\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/03\/shutterstock_321627716.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Linux laptop showing a bash prompt\" width=\"1200\" height=\"675\"\/><figcaption class=\"wp-caption-text\"><span class=\"type:primaryImage imagecredit\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.shutterstock.com\/image-vector\/linux-interface-screen-notebook-world-map-321627716\">fatmawati achmad zaenuri\/Shutterstock.com<\/a><\/span><\/figcaption><\/figure>\n<p>If you&#8217;re being told a user &#8220;is not in the sudoers file,&#8221; you can give the user full sudo privileges with the usermod command. To control what a user can do with sudo, edit the sudoers file with visudo.<\/p>\n<p>The people who can use the Linux <code>sudo<\/code> command are members of a small and select club, sometimes called the \u201csudoers\u201d list. Each member has the same powers as <code>root<\/code>. So how do you join that club? We\u2019ll walk through adding a person to sudoers as well as editing the sudoers file to limit permissions.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"sudo_Your_Superpowered_Alter-Ego\"><\/span>sudo: Your Superpowered Alter-Ego<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In Linux installations, <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/737563\/what-is-root-on-linux\/\">the root user is the most highly-privileged user. They can perform any administrative task, access any file regardless of actually owns it, and they can create, manipulate, and even remove other users.<\/p>\n<p>This level of power is dangerous. If <code>root<\/code> makes a mistake, the results can be catastrophic. They have the ability to mount and unmount file systems, and to over-write them entirely. A much safer way to work is to never log in as <code>root<\/code>.<\/p>\n<p>Nominated users can use <code>sudo<\/code> to temporarily gain administrative powers, perform the action that is required, and then return to their normal, unprivileged state. This is safer because you consciously invoke your higher powers when you need them, and while you\u2019re focused on doing whatever it is that requires them.<\/p>\n<p>The <code>sudo<\/code> command is the Linux equivalent of shouting \u201c<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.merriam-webster.com\/dictionary\/shazam\">Shazam<\/a>.\u201d When the scary stuff is over, you abandon your superpowered alter-ego and go back to your normal humdrum self.<\/p>\n<p>Logging in as <code>root<\/code> is turned off by default on most modern distributions, but it can be reinstated. Using the root account for day-to-day work is inadvisable. Mistakes that would ordinarily impact a single user or that would be blocked altogether because of insufficient privileges, can run unhindered if <code>root<\/code> issues them.<\/p>\n<p>Modern Linux distributions grant <code>sudo<\/code> privileges to the user account that\u2019s created during the installation or post-installation configuration steps. If anyone else tries to use <code>sudo<\/code> , they\u2019ll see a warning message like this:<\/p>\n<pre>mary is not in the sudoers file. This incident will be reported.<\/pre>\n<p>That seems plain enough. Our user <code>mary<\/code> can\u2019t use <code>sudo<\/code> because she isn\u2019t \u201cin the sudoers file.\u201d So let\u2019s see how we can add her.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Control sudo Access on Linux<\/em><\/strong><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"The_sudoers_File_and_visudo\"><\/span>The sudoers File and visudo<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before someone can use the <code>sudo<\/code> command we need to work with the <code>sudoers<\/code> file. This lists the user groups of the users who can use <code>sudo<\/code>. If we need to make amendments to the file, we must edit it.<\/p>\n<p>The <code>sudoers<\/code> file\u00a0<em>must<\/em>\u00a0be opened using the <code>visudo<\/code> command. This locks the <code>sudoers<\/code> file and prevents two people trying to make changes at the same time. It also performs some sanity checks before saving your edits, ensuring they parse correctly and are syntactically sound.<\/p>\n<p>Note that <code>visudo<\/code> isn\u2019t an editor, it launches one of your available editors. On Ubuntu 22.04, Fedora 37, and Manjaro 21, <code>visudo<\/code> launched\u00a0<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/howto\/42980\/the-beginners-guide-to-nano-the-linux-command-line-text-editor\/\">nano. That might not be the case on your computer.<\/p>\n<p>If we want to give someone access to full <code>sudo<\/code> privileges, we only need to reference some information from the <code>sudoers<\/code> file. If we want to be more granular and give our user some of the capabilities of <code>root<\/code>, we need to edit the file and save the changes.<\/p>\n<p>Either way, we need to use <code>visudo<\/code>.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Exit the Vi or Vim Editor<\/em><\/strong><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Add_a_New_sudo_User_in_Ubuntu_and_Other_Linux_Distros\"><\/span>Add a New sudo User in Ubuntu and Other Linux Distros<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We\u2019ve got two users who need access to root privileges in order to carry out their job roles. They are Tom and Mary. Mary needs to have access to everything <code>root<\/code> can do. Tom only needs to install <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>lications.<\/p>\n<p>Let\u2019s add Mary to the sudoers\u2019 group first. We need to start <code>visudo<\/code>.<\/p>\n<pre>sudo visudo<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-842742\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/10\/1-6.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Launching visudo on Ubuntu Linux\" width=\"644\" height=\"55\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Scroll down in the editor until you see the \u201cUser Privilege Specification\u201d section. Look for a comment that says something similar to \u201cAllow members of this group to execute any command.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-842743\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/10\/2-7.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The sudoers file open in the nano editor\" width=\"644\" height=\"380\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>We\u2019re told that members of the <code>sudo<\/code> group can execute any command. All we need to know in Mary\u2019s case is the name of that group. It isn\u2019t always <code>sudo<\/code>\u00a0; it might be <code>wheel<\/code> or something else. Now that we know the name of the group, we can close the editor and <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/50787\/add-a-user-to-a-group-or-second-group-on-linux\/\">add Mary to that group.<\/p>\n<p>We\u2019re using the <code>usermod<\/code> command with the <code>-a<\/code> (append) and <code>-G<\/code> (group name) options. The <code>-G<\/code> option allows us to name the group we\u2019d like to add the user to, and the <code>-a<\/code> option tells <code>usermod<\/code> to add the new group to the list of existing groups this user is already in.<\/p>\n<p>If you don\u2019t use the <code>-a<\/code> option, the only group your user will be in is the newly added group. Double-check, and make sure you\u2019ve included the <code>-a<\/code> option.<\/p>\n<pre>sudo usermod -aG sudo mary<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-842745\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/10\/8-5.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Using usermod to add the user mary to the sudo group\" width=\"644\" height=\"55\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The next time Mary logs in, she\u2019ll have access to <code>sudo<\/code>. We\u2019ve logged her in and we\u2019re trying to edit the file system table file, \u201c\/etc\/fstab.\u201d This is a file that is out of bounds to everyone but\u00a0<code>root<\/code>.<\/p>\n<pre>sudo nano \/etc\/fstab<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-842745\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/10\/8-5.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Using usermod to add the user mary to the sudo group\" width=\"644\" height=\"55\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The nano editor opens up with the \u201c\/etc\/fstab\u201d file loaded.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-842746\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/10\/4-5.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"user mary editing the \/etc\/fstab file by using sudo \" width=\"644\" height=\"380\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Without <code>sudo<\/code> privileges, you\u2019d only be able to open this as a read-only file. Mary no longer has those restrictions. She can save any changes she makes.<\/p>\n<p>Close the editor and <em>don\u2019t<\/em> save any changes you may have made.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Limit_sudo_Privileges_by_Editing_the_sudoers_File\"><\/span>Limit sudo Privileges by Editing the sudoers File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Our other user, Tom, is going to be granted permission to install software, but he isn\u2019t going to receive all of the privileges that were awarded to Mary.<\/p>\n<p>We need to edit the <code>sudoers<\/code> file.<\/p>\n<pre>sudo visudo<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-842742\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/10\/1-6.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Launching visudo on Ubuntu Linux\" width=\"644\" height=\"55\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Scroll down in the editor until you see the \u201cUser Privilege Specification\u201d section. Look for a comment that says something similar to \u201cAllow the members of this group to execute any command.\u201d It\u2019s the same point in the file where we found the name of the group we needed to add Mary to.<\/p>\n<p>Add these lines below that section.<\/p>\n<pre># user tom can install software&#13;\ntom     ALL=(root) \/usr\/bin\/apt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-842747\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/10\/9-5.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Adding new entries to the sudoers file\" width=\"644\" height=\"380\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The first line is a simple comment. Note that there is a Tab between the user name \u201ctom\u201d and the word \u201cAll.\u201d<\/p>\n<p>This is what the items on the line mean.<\/p>\n<ul>\n<li><strong>tom<\/strong>: The name of the user\u2019s\u00a0<em>default group<\/em>. Usually this is the same as the name of their user account.<\/li>\n<li><strong>ALL=<\/strong>: This rule applies to all hosts on this network.<\/li>\n<li><strong>(root)<\/strong>: Members of the \u201ctom\u201d group\u2014that is, user Tom\u2014can assume <code>root<\/code> privileges, for the listed commands.<\/li>\n<li><strong>\/usr\/bin\/apt<\/strong>: This is the only command user Tom can run as <code>root<\/code>.<\/li>\n<\/ul>\n<p>We\u2019ve specified the <code>apt<\/code> package manager here because this computer uses Ubuntu Linux. You\u2019d need to replace this with the appropriate command if you\u2019re using a different distribution.<\/p>\n<p>Let\u2019s log Tom in and see if we get the expected behavior. We\u2019ll try to edit the \u201c\/etc\/fstab\u201d file.<\/p>\n<pre>sudo nano \/etc\/fstab<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-842748\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/10\/6-5.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Trying to edit the \/etc\/fstab file without sudo privileges\" width=\"644\" height=\"130\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>That command is rejected, and we\u2019re told that \u201cuser tom isn\u2019t allowed to execute \u2018\/usr\/bin\/nano \/etc\/fstab\u2019 as root \u2026\u201d<\/p>\n<p>That\u2019s what we wanted. User Tom is only supposed to be able to use the <code>apt<\/code> package manager. Let\u2019s make sure they can do that.<\/p>\n<pre>sudo apt install neofetch<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-842749\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/10\/7-5.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"User Tom using the apt command with sudo\" width=\"644\" height=\"380\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The command is successfully executed for Tom.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Whosoever_Holds_This_Command\"><\/span><a rel=\"nofollow noopener\" target=\"_blank\" name=\"autotoc_anchor_4\">Whosoever Holds This Command<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If all your users can use <code>sudo<\/code>, you\u2019ll have chaos on your hands. But it is worth promoting other users so they can share your administrative burden. Just make sure they\u2019re worthy, and <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/822971\/review-linux-sudo-usage-history\/\">keep an eye on them.<\/p>\n<p>Even if you\u2019re the only user on your computer, It\u2019s worth considering creating another user account and giving it full access to <code>sudo<\/code>. That way, if you ever find yourself locked out of your main account, you have another account you can log in with to try to remedy the situation.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Review sudo Command Usage on Linux<\/em><\/strong><\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/842739\/how-to-add-a-user-to-the-sudoers-file-in-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;How to Add a User to the sudoers File in Linux&#8221; fatmawati achmad zaenuri\/Shutterstock.com If you&#8217;re being told a user &#8220;is not in the sudoers file,&#8221; you can give the user full sudo privileges with the usermod command. To control what a user can do with sudo, edit the sudoers file with visudo. The people&#8230;<\/p>\n","protected":false},"author":1,"featured_media":505170,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/03\/shutterstock_321627716.png?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-505169","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/505169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=505169"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/505169\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/505170"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=505169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=505169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=505169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}