<?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>Users &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/users/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>Mon, 07 Sep 2020 08:27:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.12</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Users &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Create a Sudo User on Ubuntu</title>
		<link>https://help.hostry.com/knowledge-base/create-a-sudo-user-on-ubuntu/</link>
					<comments>https://help.hostry.com/knowledge-base/create-a-sudo-user-on-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Mon, 07 Sep 2020 08:27:57 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1981</guid>

					<description><![CDATA[One of the best ways to ensure security while doing administrative work on your server is to run as a non-root user. After successfully purchasing a VPS from Hostry, the first task as root should be to set up a non-root user with a valid sudo. This guide is applicable [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>One of the best ways to ensure security while doing administrative work on your server is to run as a non-root user. After successfully purchasing a <strong><em><a href="https://hostry.com/">VPS</a></em></strong> from Hostry, the first task as root should be to set up a non-root user with a valid sudo.<br> This guide is applicable for Ubuntu distribution, for versions: 20.04 LTS, 18.04 LTS, 16.04 LTS.</p>



<h2 id="add-a-new-user-account" >Add a New User Account</h2>



<p>To create a <strong>user</strong> account, you need to use the <strong><em>adduser</em></strong> command. We recommend using a strong password for the user! An example of a strong password is <strong>aoQ7w52!OKvA$Pfz</strong>. Next, you can enter values ​​for user information, or press ENTER to leave these fields blank.</p>



<pre class="wp-block-code"><code># adduser example_user
Adding user `example_user' ...
Adding new group `example_user' (1001) ...
Adding new user `example_user' (1001) with group `example_user' ...
Creating home directory `/home/example_user' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for example_user
Enter the new value, or press ENTER for the default
        Full Name []: Example User
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] y</code></pre>



<h2 id="add-user-to-sudo-group" >Add User to Sudo Group</h2>



<p>You can add a new user to the sudo group using the <strong><em>usermod</em></strong> command</p>



<pre class="wp-block-code"><code># usermod -aG sudo example_user</code></pre>



<h2 id="test" >Test</h2>



<p>Switch to a <strong>New</strong> user</p>



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



<p>Make sure you are the new <strong><em>whoami</em></strong> user, then test<strong><em> sudo</em></strong> access with<strong> sudo whoami</strong> which should return root</p>



<pre class="wp-block-code"><code>$ whoami
example_user
$ sudo whoami
[sudo] password for example_user:
root</code></pre>



<p>Done!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/create-a-sudo-user-on-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Set Unlimited Users and File descriptions on Linux server</title>
		<link>https://help.hostry.com/knowledge-base/how-to-set-unlimited-users-and-file-descriptions-on-linux-server/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-set-unlimited-users-and-file-descriptions-on-linux-server/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Mon, 17 Aug 2020 09:21:22 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1929</guid>

					<description><![CDATA[Linux has a unique system for installing and changing the maximum number of user processes, uilimit. The default number of file descriptors that any process can open is 1024 per process. Installing unlimited users and descriptions on the server When you do this task, you get the error &#8220;too many [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Linux has a unique system for installing and changing the maximum number of user processes, <em><strong><a href="https://ss64.com/bash/ulimit.html">uilimit</a></strong></em>. The default number of file descriptors that any process can open is 1024 per process.</p>



<h2 id="installing-unlimited-users-and-descriptions-on-the-server" >Installing unlimited users and descriptions on the server</h2>



<p>When you do this task, you get the error &#8220;too many files open limit&#8221;. This means that there is a limitation on opening Linux files according to the user&#8217;s session. To do this, add a line to /etc/sysctl.conf and run sysctl -p:</p>



<pre class="wp-block-preformatted">fs.file-max = 80000</pre>



<p>Next, we check the default constraints. This can be done with the following command:</p>



<pre class="wp-block-preformatted">cat /proc/sys/fs/ file-max</pre>



<p>file-max is the maximum file descriptor. This is a kernel setting applied at the system level. Also you can check the default values ​​for the root user.</p>



<pre class="wp-block-preformatted">ulimit -a</pre>



<p>It is also possible to set hard and soft limits by editing this vim file /etc/security/limits.conf</p>



<pre class="wp-block-preformatted">* hard nofile 600000
* soft nofile 600000</pre>



<p>Set hard and soft limits for Linux user</p>



<pre class="wp-block-preformatted">linux hard nofile 600000
linux soft nofile 600000</pre>



<p>Then run the following command to make the changes</p>



<pre class="wp-block-code"><code>sysctl -p</code></pre>



<p>It is also possible to check how many files are open at the moment using following command</p>



<pre class="wp-block-code"><code>lsof | wc -l</code></pre>



<p>You can check how many file descriptions are currently in use with the following command:</p>



<pre class="wp-block-code"><code>more /proc/sys/fs/file-nr</code></pre>



<p>Check the file descriptor limit for the currently open file using the following commands</p>



<pre class="wp-block-preformatted">more /proc/sys/fs/file-max
sysctl -a | grep fs.file-max</pre>



<p>After making the changes, you need to log out and log back in. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-set-unlimited-users-and-file-descriptions-on-linux-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
