<?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>developer &#124; designer &#124; web &#124; flash &#124; iphone &#124; Design Menace &#187; Other Stuff</title>
	<atom:link href="http://www.designmenace.com/category/other-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designmenace.com</link>
	<description>Portfolio of Developer Jeffrey Hunter</description>
	<lastBuildDate>Wed, 07 Dec 2011 19:49:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Adding a User to Ubuntu</title>
		<link>http://www.designmenace.com/other-stuff/adding-a-user-to-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=adding-a-user-to-ubuntu</link>
		<comments>http://www.designmenace.com/other-stuff/adding-a-user-to-ubuntu/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 12:28:13 +0000</pubDate>
		<dc:creator>sublet</dc:creator>
				<category><![CDATA[Other Stuff]]></category>

		<guid isPermaLink="false">http://www.designmenace.com/?p=681</guid>
		<description><![CDATA[So, after I got my EC2 instance first setup, I wanted to know how the heck to manage the Wordpress theme I have on it.  As a developer, the only real way I knew of getting files onto a web server is by using FTP or SFTP.  Up to this point, I was using the .pem file to get connected and manage my server, so [...]]]></description>
			<content:encoded><![CDATA[<p>So, after I got my EC2 instance first setup, I wanted to know how the heck to manage the WordPress theme I have on it.  As a developer, the only real way I knew of getting files onto a web server is by using FTP or SFTP.  Up to this point, I was using the .pem file to get connected and manage my server, so I figured let&#8217;s get FTP working!  Well FTP seemed to be a long and painful process, however, SFTP is short and sweet.</p>
<p>So the first thing I do after getting logged onto the server is to add a user</p>
<pre class="brush: plain; title: ; notranslate">sudo useradd -d /home/sublet -m sublet</pre>
<p>Then I need to set a password.</p>
<pre class="brush: plain; title: ; notranslate">sudo passwd sublet</pre>
<p>Basically, what we have done is created the user sublet, and set his/her home directory. Now if we trust this user, and want to give them full access to the box&#8230;continue reading.</p>
<pre class="brush: plain; title: ; notranslate">sudo visudo</pre>
<p>Now go to the line that says User privilege specification.  Basically, all you have to do is copy the root entry and replace &#8220;root&#8221; with your new username.</p>
<pre class="brush: plain; title: ; notranslate">sublet    ALL=(ALL) ALL</pre>
<p>Exit and Save, and you have now given this new user, admin access.  </p>
<p>To connect using SFTP we need to run a few commands to enable the new users access.</p>
<p>First Create a Backup copy of the SSH config file.</p>
<pre class="brush: plain; title: ; notranslate">sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original</pre>
<p>Set it&#8217;s Permissions.</p>
<pre class="brush: plain; title: ; notranslate">sudo chmod a-w /etc/ssh/sshd_config.original</pre>
<p>Now edit the file.</p>
<pre class="brush: plain; title: ; notranslate">sudo vi /etc/ssh/sshd_config</pre>
<p>Make sure that you change PasswordAuthentication no to:</p>
<pre class="brush: plain; title: ; notranslate">PasswordAuthentication yes</pre>
<p>Then restart SSH for the changes to take effect.</p>
<pre class="brush: plain; title: ; notranslate">sudo /etc/init.d/ssh restart</pre>
<p>So now your user must enter this username and password, along with the IP address and they should be able to connect, if the security permissions are setup properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designmenace.com/other-stuff/adding-a-user-to-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

