<?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>quick tips Archives - Installing.in</title>
	<atom:link href="https://www.installing.in/tag/quick-tips/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.installing.in/tag/quick-tips/</link>
	<description></description>
	<lastBuildDate>Wed, 10 Aug 2022 11:32:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">110734269</site>	<item>
		<title>How to give ubuntu user permission to write to www directory</title>
		<link>https://www.installing.in/how-to-give-ubuntu-user-permission-to-write-to-www-directory/</link>
					<comments>https://www.installing.in/how-to-give-ubuntu-user-permission-to-write-to-www-directory/#respond</comments>
		
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Wed, 10 Aug 2022 11:32:30 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[quick tips]]></category>
		<guid isPermaLink="false">https://www.installing.in/?p=786</guid>

					<description><![CDATA[<p>If you are using sftp client to quick edit few files on your web server you must have face the issue of not having permission to edit files. This can... </p>
<p>The post <a href="https://www.installing.in/how-to-give-ubuntu-user-permission-to-write-to-www-directory/">How to give ubuntu user permission to write to www directory</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>If you are using sftp client to quick edit few files on your web server you must have face the issue of not having permission to edit files. </p>



<p>This can be quickly fixed in 2 steps:</p>



<ol class="wp-block-list"><li>Adding the <code>ubuntu</code> user to the <code>www-data</code> group</li><li>Giving write permission to everyone in this group</li></ol>



<h3 class="wp-block-heading"><strong>Adding the user:</strong></h3>



<p>Run this command to add the <code>ubuntu</code> user to the <code>www-data</code> group</p>



<pre class="wp-block-code"><code><code>sudo addgroup ubuntu www-data</code></code></pre>



<p>You have to<strong> logout and login back again</strong> for changes to take effect.</p>



<p></p>



<h3 class="wp-block-heading"><strong>Give the write permission:</strong></h3>



<p>Assuming your web directory is <code>/var/www</code> we run following command to give everyone in the <code>www-data</code> group write permission to this directory</p>



<pre class="wp-block-code"><code><code>sudo chmod g+w /var/www -R</code></code></pre>



<p></p>



<p>Try editing or creating new file in <code>/var/www</code> directory to verify</p>
<p>The post <a href="https://www.installing.in/how-to-give-ubuntu-user-permission-to-write-to-www-directory/">How to give ubuntu user permission to write to www directory</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.installing.in/how-to-give-ubuntu-user-permission-to-write-to-www-directory/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">786</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 14/50 objects using Redis
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Minified using Disk
Database Caching 2/21 queries in 0.006 seconds using Redis

Served from: installing.in @ 2026-05-04 14:35:17 by W3 Total Cache
-->