<?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 User &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/sudo-user/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Tue, 18 Aug 2020 09:05:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Sudo User &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Create a Sudo User on FreeBSD</title>
		<link>https://help.hostry.com/knowledge-base/how-to-create-a-sudo-user-on-freebsd/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-create-a-sudo-user-on-freebsd/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 18 Aug 2020 09:05:50 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1944</guid>

					<description><![CDATA[Install Sudo You will be able to install this from the ports collections if it is installed on your system. To do this, enter the following command: You can also install the sudo binary package using pkg: Add a Sudo User First you need to create a user account to [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 id="install-sudo" >Install Sudo</h2>



<p>You will be able to install this from the ports collections if it is installed on your system. To do this, enter the following command:</p>



<pre class="wp-block-code"><code># cd /usr/ports/security/sudo/
# make install clean</code></pre>



<p>You can also install the <strong>sudo </strong>binary package using pkg:</p>



<pre class="wp-block-code"><code># pkg install sudo</code></pre>



<h2 id="add-a-sudo-user" >Add a Sudo User</h2>



<p>First you need to create a user account to use with <strong>sudo</strong></p>



<pre class="wp-block-code"><code># adduser</code></pre>



<p>Answer the questions from the suggested options to create a user. This tutorial will use <strong>user.example</strong></p>



<h2 id="add-user-to-wheel-group" >Add User to Wheel Group</h2>



<p>This group called &#8220;<strong>Wheel</strong>&#8221; limits the list of users who can use root</p>



<pre class="wp-block-code"><code># pw group mod wheel -m user.example</code></pre>



<h2 id="edit-the-sudoers-file" >Edit the sudoers file</h2>



<p>First, you need to check the sudoers file with <strong>visudo </strong>extension</p>



<pre class="wp-block-code"><code># visudo</code></pre>



<p>Look for a wheelset. Remove comment if line is off. When you&#8217;re ready to save the file, it should look like this</p>



<pre class="wp-block-code"><code>## Allows people in group wheel to run all commands
%wheel  ALL=(ALL)       ALL</code></pre>



<p>Save and exit vi. <strong>ESC </strong>type, then : <strong>W Q</strong>, then <strong>ENTER</strong></p>



<p><strong><em>IMPORTANT</em></strong>! The visudo utility performs a syntax check before making changes to the file. The wrong sudoers file can break your system. Never edit <strong>/etc/sudoers </strong>directly. For example, if you make a mistake, you will see this when exiting <strong>visudo</strong>. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-create-a-sudo-user-on-freebsd/feed/</wfw:commentRss>
			<slash:comments>460</slash:comments>
		
		
			</item>
	</channel>
</rss>
