<?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>Tatva-Artha &#187; scp</title>
	<atom:link href="http://www.tatvartha.com/tag/scp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tatvartha.com</link>
	<description>meaning of &#34;it&#34;</description>
	<lastBuildDate>Sat, 22 Oct 2011 22:00:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Capistrano: Uploading file with different owner</title>
		<link>http://www.tatvartha.com/2009/05/capistrano-uploading-file-with-different-owner/</link>
		<comments>http://www.tatvartha.com/2009/05/capistrano-uploading-file-with-different-owner/#comments</comments>
		<pubDate>Tue, 19 May 2009 16:33:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[file transfer]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.tatvartha.com/?p=143</guid>
		<description><![CDATA[Normally when working with capistrano, you choose to execute your commands on remote machine with a root user or non-root user. For root level activity, you don&#8217;t actually use &#8220;root&#8221; account but instead provide a &#8220;deploy&#8221; user &#8220;sudo&#8221; privileges and then leverage capistrano&#8217;s &#8220;use_sudo =&#62; true&#8221; option. This still leaves you out in cold when [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Normally when working with capistrano, you choose to execute your commands on remote machine with a root user or non-root user. For root level activity, you don&#8217;t actually use &#8220;root&#8221; account but instead provide a &#8220;deploy&#8221; user &#8220;sudo&#8221; privileges and then leverage capistrano&#8217;s &#8220;use_sudo =&gt; true&#8221; option.</p>
<p>This still leaves you out in cold when you want to transfer a file and put it in a directory where your sudo user doesn&#8217;t have permission. In theory, what this needs is transferring/uploading/scp/sftp-ing that file to a /tmp and then using &#8220;sudo mv old_location new_location&#8221; to accomplish the task.</p>
<p>I ended up writing a utility method to do this but kept wondering that the need is so common that an inbuilt (and better) utility should exist. And then I found <a href="http://www.rubyonrails.lt/redmine/repositories/entry/centostrano/lib/vmbuilder_plugins/std.rb">std.su_put</a>.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.tatvartha.com/2009/05/capistrano-uploading-file-with-different-owner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

