<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sudo centos Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/sudo-centos/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 22 Dec 2018 06:07:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Add a User on the Sudoers on CentOS 7</title>
		<link>https://www.osradar.com/add-a-user-on-the-sudoers-on-centos-7/</link>
					<comments>https://www.osradar.com/add-a-user-on-the-sudoers-on-centos-7/#comments</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Sat, 22 Dec 2018 06:07:06 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[add users to sudoers]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[sudo centos]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=8623</guid>

					<description><![CDATA[<p>On CentOS, you get the very vibe of the corporate and server workspace where not all the users are allowed to have access to everywhere in the system. The only user with TRUE power is the “root” user holding the admin privilege to even manipulate data on the hardware-level! For other users, they have to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/add-a-user-on-the-sudoers-on-centos-7/">Add a User on the Sudoers on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>On CentOS, you get the very vibe of the corporate and server workspace where not all the users are allowed to have access to everywhere in the system. The only user with TRUE power is the “root” user holding the admin privilege to even manipulate data on the hardware-level!</p>
<p>For other users, they have to contact the “root” user to perform the tasks that require elevated privilege. In most of the Linux distros, you have the “sudo” command that allows that certain command to be run as an admin task.</p>
<p>However, on CentOS, even if you know the password of the “root” account, you still can’t perform “sudo” commands. CentOS protects the sudo access to only known users.</p>
<p>Today, we’ll be having a look at adding a user on the “Sudoers” list, essentially enabling the access to the “sudo” command.</p>
<p>Performing this action should only be allowed when it’s necessary. Otherwise, the system admin should do the job personally. If you’re a system admin, make sure that you understand what you’re about to do.</p>
<h1>Optional steps</h1>
<p>If the user account was created before, then don’t follow the following steps. In this section, we’ll be checking on adding a new user in the system.</p>
<p>At first, enter the “root” mode –</p>
<pre class="">su -</pre>
<p><img loading="lazy" class="size-full wp-image-8624 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-1.png" alt="" width="883" height="454" srcset="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-1.png 883w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-1-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-1-768x395.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-1-817x420.png 817w" sizes="(max-width: 883px) 100vw, 883px" /></p>
<p>Now, add a user in the system –</p>
<pre class="">adduser &lt;username&gt;</pre>
<p>&nbsp;</p>
<p><img loading="lazy" class="size-full wp-image-8630 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-2.png" alt="" width="877" height="150" srcset="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-2.png 877w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-2-300x51.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-2-768x131.png 768w" sizes="(max-width: 877px) 100vw, 877px" /></p>
<p>Time to add a password for the user –</p>
<pre class="">passwd &lt;username&gt;</pre>
<h1><img loading="lazy" class="size-full wp-image-8629 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-3.png" alt="" width="869" height="170" srcset="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-3.png 869w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-3-300x59.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-3-768x150.png 768w" sizes="(max-width: 869px) 100vw, 869px" /></h1>
<h1>Adding a user to the “sudoers”</h1>
<p>Run the following command as the “root” –</p>
<pre class="">usermod -aG wheel &lt;username&gt;</pre>
<p><img loading="lazy" class="size-full wp-image-8628 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-4.png" alt="" width="879" height="181" srcset="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-4.png 879w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-4-300x62.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-4-768x158.png 768w" sizes="(max-width: 879px) 100vw, 879px" /></p>
<p>This command will add the specific user into the “wheel” group. By default, the users in this group will automatically have the access to the “sudo” command.</p>
<p>Switch to the new user –</p>
<pre class="">su - &lt;username&gt;</pre>
<p><img loading="lazy" class="size-full wp-image-8627 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-5.png" alt="" width="875" height="96" srcset="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-5.png 875w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-5-300x33.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-5-768x84.png 768w" sizes="(max-width: 875px) 100vw, 875px" /></p>
<p>Now, run any command using “sudo” –</p>
<p><img loading="lazy" class="size-full wp-image-8626 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-6.png" alt="" width="868" height="618" srcset="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-6.png 868w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-6-300x214.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-6-768x547.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-6-100x70.png 100w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-6-590x420.png 590w" sizes="(max-width: 868px) 100vw, 868px" /> <img loading="lazy" class="size-full wp-image-8625 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-7.png" alt="" width="871" height="618" srcset="https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-7.png 871w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-7-300x213.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-7-768x545.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-7-100x70.png 100w, https://www.osradar.com/wp-content/uploads/2018/12/centos-sudoers-7-592x420.png 592w" sizes="(max-width: 871px) 100vw, 871px" /></p>
<p>Voila! Everything is working properly!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/add-a-user-on-the-sudoers-on-centos-7/">Add a User on the Sudoers on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/add-a-user-on-the-sudoers-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
