{"id":113735,"date":"2024-08-09T11:30:00","date_gmt":"2024-08-09T15:30:00","guid":{"rendered":"https:\/\/jumpcloud.com\/?p=113735"},"modified":"2024-10-28T10:01:39","modified_gmt":"2024-10-28T14:01:39","slug":"how-to-manage-sudo-users-in-other-distributions","status":"publish","type":"post","link":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions","title":{"rendered":"How To Manage Sudo Users in Other Distributions"},"content":{"rendered":"\n<p><a class=\"wp-block-cgb-button button\" href=\"#step1\">Jump to Tutorial<\/a><\/p>\n\n\n\n<p>Managing sudo users is one of the most important administrative tasks in any Linux distribution. This process allows a permitted user to run commands as the superuser or another user, defined through security policies.\u00a0<\/p>\n\n\n\n<p>This reduces the potential security threat of having unprivileged users run any command on the system, and we can also audit executed commands or apply the least privilege principle.&nbsp;<\/p>\n\n\n\n<p>In this tutorial, we will cover managing sudo users across different popular Linux distributions such as Debian, Ubuntu, Rocky Linux, and Fedora. This process will further explain adding, removing, and modifying sudo permissions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step1\">Step 1: Adding Sudo Users<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-adding-sudo-users-in-debian-or-ubuntu\">Adding Sudo Users in Debian or Ubuntu<\/h3>\n\n\n\n<p>In this example, we will use Debian 12 but the same procedure stands for older Debian versions. The same process is valid for any Ubuntu version. Ubuntu is based on Debian and it&#8217;s a popular Linux distribution that derives its core structure and package management system from Debian.<\/p>\n\n\n\n<p>Our idea here is to create a dedicated sudo user and assign it the necessary permissions.<\/p>\n\n\n\n<p>For all examples, use the command line to run commands and make sure you already have enough permissions to create new users and run higher privilege commands.&nbsp;<\/p>\n\n\n\n<p>Use the &#8216;<strong>adduser<\/strong>&#8216; command to create a new user, where you can replace &#8216;<strong>username<\/strong>&#8216; with your desired username.\u00a0<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>sudo adduser username<\/p>\n<\/div><\/div>\n\n\n\n<p>You will be prompted to enter and confirm the new user&#8217;s password as well as information about the name, phone number, and so on. These values, except for the password, are not mandatory and you can just type &#8216;Enter&#8217; to skip. Once you are satisfied with your input, you can type &#8216;<strong>y<\/strong>&#8216; and then &#8216;<strong>Enter<\/strong>&#8216;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"512\" height=\"226\" src=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/1-1.png\" alt=\"tutorial code \" class=\"wp-image-113740\" srcset=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/1-1.png 512w, https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/1-1-300x132.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>This will create a new user called &#8216;<strong>jumpcloud<\/strong>&#8216;.<\/p>\n\n\n\n<p>Once the new user is created, add it to the &#8216;sudo&#8217; group so we can grant it the sudo privileges.<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>sudo usermod -aG sudo username<\/p>\n<\/div><\/div>\n\n\n\n<p>Switch to the new user account and verify that we have sudo privileges by executing a command with sudo.<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>su &#8211; jumpcloud<br>sudo whoami<\/p>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"475\" height=\"91\" src=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/2-1.png\" alt=\"tutorial code \" class=\"wp-image-113741\" srcset=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/2-1.png 475w, https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/2-1-300x57.png 300w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/figure>\n\n\n\n<p>You should see &#8216;root&#8217; as the output if the user has been successfully granted sudo permissions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-adding-sudo-users-in-rocky-linux-or-fedora\">Adding Sudo Users in Rocky Linux or Fedora<\/h3>\n\n\n\n<p>In this example, we will use Rocky Linux 9, but you can also use Rocky Linux 8 or any Fedora version since the procedure for adding a new sudo user is the same. Rocky Linux is based on Red Hat Enterprise Linux (RHEL) while Fedora is a community-driven distribution sponsored by Red Hat. It serves as a platform for innovation and testing new features that may eventually be incorporated into RHEL, and Fedora acts as the upstream source for RHEL.<\/p>\n\n\n\n<p>We will use the &#8216;adduser&#8217; command to create a new user, while you can change &#8216;username&#8217; with your desired username.<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>sudo adduser username<\/p>\n<\/div><\/div>\n\n\n\n<p>In Rocky Linux, this doesn&#8217;t start a new prompt where you can enter your full name, work phone, and other details but it just creates a new user and assigns a new home directory with the same name.<\/p>\n\n\n\n<p>Now, we need to create a new password for our user. We can do so by running the following command:<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>sudo passwd jumpcloud<\/p>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"512\" height=\"78\" src=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/3-1.png\" alt=\"tutorial code \" class=\"wp-image-113742\" srcset=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/3-1.png 512w, https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/3-1-300x46.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>After setting up a complex password, we can proceed by adding this user to the sudoers group. In both Rocky Linux and Fedora we can run the following command:<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>sudo usermod -aG wheel jumpcloud<\/p>\n<\/div><\/div>\n\n\n\n<p>This command will add our user to the &#8216;<strong>wheel<\/strong>&#8216; group which is a special group on many Unix-like systems that grants its members the ability to use the &#8216;sudo&#8217; command to execute commands as the superuser.&nbsp;<\/p>\n\n\n\n<p>We can see a difference here compared to the Debian-based distros where they use the sudo group, and we see how the specific group name used varies between distributions. One thing to note though is that both RHEL and Debian-based systems rely on &#8216;\/<strong>etc\/sudoers<\/strong>&#8216; file.<\/p>\n\n\n\n<p>Now, when we switch to our user, we can check if we can run sudo commands:<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>su &#8211; jumpcloud<br>sudo whoami<\/p>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"512\" height=\"170\" src=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/4-1.png\" alt=\"tutorial code \" class=\"wp-image-113743\" srcset=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/4-1.png 512w, https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/4-1-300x100.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step2\">Step 2: Modifying Sudo Permissions<\/h2>\n\n\n\n<p>Both RHEL-based such as Rocky Linux, Fedora as well as Debian-based distributions use the &#8216;visudo&#8217; command to safely edit &#8216;<strong>\/etc\/sudoers&#8217;<\/strong> file. Editing this file with a regular text editor could potentially lead to corruption so &#8216;visudo&#8217; command checks for syntax errors before saving changes, preventing configuration mistakes that could lock you out of sudo access.<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>sudo visudo<\/p>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"512\" height=\"280\" src=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1.png\" alt=\"tutorial code \" class=\"wp-image-113744\" srcset=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1.png 512w, https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1-300x164.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-modifying-sudo-permissions-in-debian-and-ubuntu\">Modifying Sudo Permissions in Debian and Ubuntu<\/h3>\n\n\n\n<p>In Debian and Ubuntu, the &#8216;sudo&#8217; group is used to manage sudo permissions. We can find the following line in the &#8216;\/etc\/sudoers&#8217; file:<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>%sudo ALL=(ALL) ALL<\/p>\n<\/div><\/div>\n\n\n\n<p>This line grants all members of the sudo group the ability to execute any command as any user using &#8216;sudo&#8217;.<\/p>\n\n\n\n<p>There are various scenarios of how you can edit the sudoers file to your preference. One of the examples is if you want to restrict a user to perform certain commands only. Let&#8217;s use our <strong>jumpcloud <\/strong>user so it can only execute the <strong>apt<\/strong> command. Here we should comment out the directive related to the sudo group and just below place a new line:<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>jumpcloud ALL=(ALL) \/usr\/bin\/apt<\/p>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"512\" height=\"115\" src=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/6.png\" alt=\"tutorial code \" class=\"wp-image-113746\" srcset=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/6.png 512w, https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/6-300x67.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>Press <strong>Ctrl + O<\/strong> to save the file and <strong>Ctrl + X<\/strong> to exit the file.<\/p>\n\n\n\n<p>Now we can try to run the apt-get command that we defined in our sudoers file.<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>su &#8211; jumpcloud<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>sudo apt update<\/p>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"512\" height=\"95\" src=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/7.png\" alt=\"tutorial code \" class=\"wp-image-113747\" srcset=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/7.png 512w, https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/7-300x56.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>We can see that our user is able to run the <strong>apt <\/strong>command, however, if we run the following command:<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>sudo systemctl status sshd<\/p>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"512\" height=\"59\" src=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/8.png\" alt=\"tutorial code \" class=\"wp-image-113748\" srcset=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/8.png 512w, https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/8-300x35.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>We can see that our user is not able to execute the command. Make sure to plan out your changes in <strong>sudoers<\/strong> file and make informed decisions so you are not locked out of your system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-modifying-sudo-permissions-in-rocky-linux-and-fedora\">Modifying Sudo Permissions in Rocky Linux and Fedora<\/h3>\n\n\n\n<p>The process of modifying sudo permissions for these distributions is similar to Debian-based systems. Here we use <strong>visudo<\/strong> command again to edit the sudoers file, as it&#8217;s the safer way to evade any syntax errors.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"512\" height=\"136\" src=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/9.png\" alt=\"tutorial code \" class=\"wp-image-113749\" srcset=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/9.png 512w, https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/9-300x80.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>The difference is that sudo users are in the <strong>wheel <\/strong>group, and since the Vi editor is used by default you can edit the file by pressing <strong>i <\/strong>to enter edit mode, and once done you can pre Esc then type <strong>:wq<\/strong> which will save and exit the document.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step3\">Step 3: Removing a Sudo User<\/h2>\n\n\n\n<p>In our management process, we can also remove sudo users. This is an important procedure when the user doesn&#8217;t require higher privileges anymore or when it&#8217;s compromised so we need to establish damage control and revoke any exposed account.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-removing-a-sudo-user-in-debian-or-ubuntu\">Removing a Sudo User in Debian or Ubuntu<\/h3>\n\n\n\n<p>We can remove a user from the sudo group by running the following command:<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>sudo deluser jumpcloud sudo\u00a0<\/p>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"512\" height=\"139\" src=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/10.png\" alt=\"tutorial code \" class=\"wp-image-113750\" srcset=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/10.png 512w, https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/10-300x81.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>Now we can confirm that we don&#8217;t have sudo permissions for our user:<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>su &#8211; jumpcloud<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>sudo whoami<\/p>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"512\" height=\"67\" src=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/11.png\" alt=\"tutorial code \" class=\"wp-image-113751\" srcset=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/11.png 512w, https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/11-300x39.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>We can see based on the output that our user doesn&#8217;t have elevated privileges.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-removing-a-sudo-user-in-rocky-linux-and-fedora\">Removing a sudo user in Rocky Linux and Fedora<\/h3>\n\n\n\n<p>In Rocky Linux, Fedora, and similar RHEL-based distributions, we can use the following command:<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>sudo gpasswd -d jumpcloud wheel<\/p>\n<\/div><\/div>\n\n\n\n<p>This command is an administrative tool used to manage group memberships, specifically to remove a user from the &#8216;<strong>wheel<\/strong>&#8216; group, and we can use it to revoke sudo privileges from users and in that way restrict their ability to perform administrative tasks on the system.<\/p>\n\n\n\n<p>We can again try to log in as our <strong>jumpcloud<\/strong> user and try a sudo command:<\/p>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>su &#8211; jumpcloud<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-cgb-code-block code-block\"><div class=\"code-block-snippet is-type-body-default\">\n<p>sudo whoami<\/p>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"512\" height=\"63\" src=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/12.png\" alt=\"tutorial code \" class=\"wp-image-113752\" srcset=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/12.png 512w, https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/12-300x37.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>Based on the output, we can confirm that our user doesn&#8217;t have sudo permissions.<\/p>\n\n\n\n<p>Managing sudo users is a crucial task for maintaining the security of your Linux system. By following this guide, you should be able to add, remove, and modify sudo privileges across different Linux distributions.<\/p>\n\n\n\n<p>Make sure to use &#8216;visudo&#8217; command for editing the sudoers file since possible corruption is possible due to syntax errors. Also, double-check your changes to ensure the correct permissions are granted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to manage Sudo users for different Linux distributions in this step-by-step tutorial.<\/p>\n","protected":false},"author":120,"featured_media":113744,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_oasis_is_in_workflow":0,"_oasis_original":0,"_oasis_task_priority":"","inline_featured_image":false,"footnotes":""},"categories":[2781],"tags":[],"collection":[],"platform":[],"funnel_stage":[3017],"coauthors":[2537],"class_list":["post-113735","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","funnel_stage-how-to"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.3.1 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Manage Sudo Users in Other Distributions - JumpCloud<\/title>\n<meta name=\"description\" content=\"Learn how to manage Sudo users for different Linux distributions in this step-by-step tutorial.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Manage Sudo Users in Other Distributions\" \/>\n<meta property=\"og:description\" content=\"Learn how to manage Sudo users for different Linux distributions in this step-by-step tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions\" \/>\n<meta property=\"og:site_name\" content=\"JumpCloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-09T15:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-28T14:01:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"512\" \/>\n\t<meta property=\"og:image:height\" content=\"280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sean Blanton\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sean Blanton\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#article\",\"isPartOf\":{\"@id\":\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions\"},\"author\":{\"name\":\"Sean Blanton\",\"@id\":\"https:\/\/jumpcloud.com\/#\/schema\/person\/0c2a749d55fd9ade81d9f810c8d5aaa3\"},\"headline\":\"How To Manage Sudo Users in Other Distributions\",\"datePublished\":\"2024-08-09T15:30:00+00:00\",\"dateModified\":\"2024-10-28T14:01:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions\"},\"wordCount\":1325,\"publisher\":{\"@id\":\"https:\/\/jumpcloud.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1.png\",\"articleSection\":[\"How-To\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions\",\"url\":\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions\",\"name\":\"How To Manage Sudo Users in Other Distributions - JumpCloud\",\"isPartOf\":{\"@id\":\"https:\/\/jumpcloud.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1.png\",\"datePublished\":\"2024-08-09T15:30:00+00:00\",\"dateModified\":\"2024-10-28T14:01:39+00:00\",\"description\":\"Learn how to manage Sudo users for different Linux distributions in this step-by-step tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#primaryimage\",\"url\":\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1.png\",\"contentUrl\":\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1.png\",\"width\":512,\"height\":280,\"caption\":\"tutorial code\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jumpcloud.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Manage Sudo Users in Other Distributions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jumpcloud.com\/#website\",\"url\":\"https:\/\/jumpcloud.com\/\",\"name\":\"JumpCloud\",\"description\":\"Daily insights on directory services, IAM, LDAP, identity security, SSO, system management (Mac, Windows, Linux), networking, and the cloud.\",\"publisher\":{\"@id\":\"https:\/\/jumpcloud.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jumpcloud.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jumpcloud.com\/#organization\",\"name\":\"JumpCloud\",\"url\":\"https:\/\/jumpcloud.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jumpcloud.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2021\/01\/jc-logo-brand-2021.png\",\"contentUrl\":\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2021\/01\/jc-logo-brand-2021.png\",\"width\":598,\"height\":101,\"caption\":\"JumpCloud\"},\"image\":{\"@id\":\"https:\/\/jumpcloud.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jumpcloud.com\/#\/schema\/person\/0c2a749d55fd9ade81d9f810c8d5aaa3\",\"name\":\"Sean Blanton\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jumpcloud.com\/#\/schema\/person\/image\/cb916389b92a125d9ab6de7f0203b6d5\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fe07dbb884e78b3630de3215477666393f24a038a8ca1dbf030711423f080ad5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fe07dbb884e78b3630de3215477666393f24a038a8ca1dbf030711423f080ad5?s=96&d=mm&r=g\",\"caption\":\"Sean Blanton\"},\"description\":\"Sean Blanton has spent the past 15 years in the wide world of security, networking, and IT and Infosec administration. When not at work Sean enjoys spending time with his young kids and geeking out on table top games.\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Manage Sudo Users in Other Distributions - JumpCloud","description":"Learn how to manage Sudo users for different Linux distributions in this step-by-step tutorial.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions","og_locale":"en_US","og_type":"article","og_title":"How To Manage Sudo Users in Other Distributions","og_description":"Learn how to manage Sudo users for different Linux distributions in this step-by-step tutorial.","og_url":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions","og_site_name":"JumpCloud","article_published_time":"2024-08-09T15:30:00+00:00","article_modified_time":"2024-10-28T14:01:39+00:00","og_image":[{"width":512,"height":280,"url":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1.png","type":"image\/png"}],"author":"Sean Blanton","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sean Blanton","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#article","isPartOf":{"@id":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions"},"author":{"name":"Sean Blanton","@id":"https:\/\/jumpcloud.com\/#\/schema\/person\/0c2a749d55fd9ade81d9f810c8d5aaa3"},"headline":"How To Manage Sudo Users in Other Distributions","datePublished":"2024-08-09T15:30:00+00:00","dateModified":"2024-10-28T14:01:39+00:00","mainEntityOfPage":{"@id":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions"},"wordCount":1325,"publisher":{"@id":"https:\/\/jumpcloud.com\/#organization"},"image":{"@id":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#primaryimage"},"thumbnailUrl":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1.png","articleSection":["How-To"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions","url":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions","name":"How To Manage Sudo Users in Other Distributions - JumpCloud","isPartOf":{"@id":"https:\/\/jumpcloud.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#primaryimage"},"image":{"@id":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#primaryimage"},"thumbnailUrl":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1.png","datePublished":"2024-08-09T15:30:00+00:00","dateModified":"2024-10-28T14:01:39+00:00","description":"Learn how to manage Sudo users for different Linux distributions in this step-by-step tutorial.","breadcrumb":{"@id":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#primaryimage","url":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1.png","contentUrl":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/08\/5-1.png","width":512,"height":280,"caption":"tutorial code"},{"@type":"BreadcrumbList","@id":"https:\/\/jumpcloud.com\/blog\/how-to-manage-sudo-users-in-other-distributions#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jumpcloud.com\/"},{"@type":"ListItem","position":2,"name":"How To Manage Sudo Users in Other Distributions"}]},{"@type":"WebSite","@id":"https:\/\/jumpcloud.com\/#website","url":"https:\/\/jumpcloud.com\/","name":"JumpCloud","description":"Daily insights on directory services, IAM, LDAP, identity security, SSO, system management (Mac, Windows, Linux), networking, and the cloud.","publisher":{"@id":"https:\/\/jumpcloud.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jumpcloud.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jumpcloud.com\/#organization","name":"JumpCloud","url":"https:\/\/jumpcloud.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jumpcloud.com\/#\/schema\/logo\/image\/","url":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2021\/01\/jc-logo-brand-2021.png","contentUrl":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2021\/01\/jc-logo-brand-2021.png","width":598,"height":101,"caption":"JumpCloud"},"image":{"@id":"https:\/\/jumpcloud.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jumpcloud.com\/#\/schema\/person\/0c2a749d55fd9ade81d9f810c8d5aaa3","name":"Sean Blanton","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jumpcloud.com\/#\/schema\/person\/image\/cb916389b92a125d9ab6de7f0203b6d5","url":"https:\/\/secure.gravatar.com\/avatar\/fe07dbb884e78b3630de3215477666393f24a038a8ca1dbf030711423f080ad5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fe07dbb884e78b3630de3215477666393f24a038a8ca1dbf030711423f080ad5?s=96&d=mm&r=g","caption":"Sean Blanton"},"description":"Sean Blanton has spent the past 15 years in the wide world of security, networking, and IT and Infosec administration. When not at work Sean enjoys spending time with his young kids and geeking out on table top games."}]}},"_links":{"self":[{"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/posts\/113735","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/users\/120"}],"replies":[{"embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/comments?post=113735"}],"version-history":[{"count":4,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/posts\/113735\/revisions"}],"predecessor-version":[{"id":116838,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/posts\/113735\/revisions\/116838"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/media\/113744"}],"wp:attachment":[{"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/media?parent=113735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/categories?post=113735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/tags?post=113735"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/collection?post=113735"},{"taxonomy":"platform","embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/platform?post=113735"},{"taxonomy":"funnel_stage","embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/funnel_stage?post=113735"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/coauthors?post=113735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}