<?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>Bradleyland.net &#187; sudoers</title>
	<atom:link href="http://bradleyland.net/tag/sudoers/feed/" rel="self" type="application/rss+xml" />
	<link>http://bradleyland.net</link>
	<description>tech that doesn't suck</description>
	<lastBuildDate>Fri, 18 Jun 2010 22:16:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Enabling Sudo on Fedora 10</title>
		<link>http://bradleyland.net/2009/05/enabling-sudo-on-fedora-10/</link>
		<comments>http://bradleyland.net/2009/05/enabling-sudo-on-fedora-10/#comments</comments>
		<pubDate>Thu, 28 May 2009 19:03:12 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[fedora 10]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[sudoers]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://bradleyland.net/?p=31</guid>
		<description><![CDATA[Since I posted my 64 bit flash tutorial, I have been getting a lot of questions on how to enable a user to sudo on Fedora 10. For those of you that wanted it, here you go! Oh yeah, next &#8230; <a href="http://bradleyland.net/2009/05/enabling-sudo-on-fedora-10/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Since I posted my <a title="http://bradleyland.net/2008/12/native-64-bit-flash-on-fedora-10/" href="http://bradleyland.net/2008/12/native-64-bit-flash-on-fedora-10/" target="_self">64 bit flash tutorial</a>, I have been getting a lot of questions on how to enable a user to sudo on Fedora 10. For those of you that wanted it, here you go! Oh yeah, next time, RTFM. *grin*</p>
<blockquote><p>Note that I am doing all of this from the command line. If you care to survive the Linux world, you should at least have a vague idea of how to use the command line. A terminal from within X will work fine as well for these steps.</p>
<p>Also note that this will work with MOST distros out there. I have yet to see a problem with any that I have tried, but I mostly work in the RPM world, so my exposure to other distros is somewhat limited.</p></blockquote>
<p>Get logged in and open a terminal window if your system starts X automatically. If you need a tutorial on how to do that, google will be your friend for a while. Before we actually edit anything, we will be finding out what groups your user belongs to you will be looking for a couple of them that are quite important. &#8220;wheel&#8221; and whatever group mirrors your username.</p>
<blockquote><p>[dude@computer ~]$ groups<br />
dude wheel pulse-access pulse-rt pulse<br />
[dude@computer ~]$</p></blockquote>
<p>Once you are logged in and know what groups you belong to, you will edit &#8220;<em>/etc/sudoers</em>&#8220;. This will require you to be root to do this. (Type in &#8220;su&#8221; at the command prompt and enter the root password for the system when you are prompted.) Once you are root, enter the following command.</p>
<blockquote><p>vim /etc/sudoers</p></blockquote>
<p>Here is where those groups come in handy. If you had <em>wheel</em> listed, we simply have to uncomment a line. If not, we have to create a new line that includes your users&#8217; group. It will make sense in a minute.</p>
<p>Lets start with the less likely situation that <em>wheel</em> was part of your groups list by default. You have two lines that you are looking for within sudoers.</p>
<blockquote><p># Uncomment to allow people in group wheel to run all commands<br />
# %wheel  ALL=(ALL)       ALL</p>
<p># Same thing without a password<br />
# %wheel        ALL=(ALL)       NOPASSWD: ALL</p></blockquote>
<p>It is quite simple at this point. If you would like to require that the sudo enabled users put their password in every time they run a command with sudo, uncomment the &#8220;<em># %wheel  ALL=(ALL)       ALL</em>&#8221; line by removing the # at the start of the line. If you don&#8217;t wish to require a password for every use of sudo, do the same with the &#8220;<em># %wheel        ALL=(ALL)       NOPASSWD: ALL</em>&#8221; line.</p>
<p>Now, what if you are like 99.9% of the fresh installs out there? What if you are not part of the wheel group, or have a situation where you only want your user to have sudo access? This is also very simple. Simply change &#8220;wheel&#8221; on whichever line you prefer to your group name and uncomment as before.</p>
<p>Done!</p>
<p>If you have issues using VI, there are a multitude of VI tutorials on the net. If you would rather use EMACS or nano or something, feel free. It should all work the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://bradleyland.net/2009/05/enabling-sudo-on-fedora-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
