<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: less, sudo, and /dev/null: Permission denied</title>
	<atom:link href="http://haxx.sinequanon.net/2009/03/less-sudo-and-devnull-permission-denied/feed/" rel="self" type="application/rss+xml" />
	<link>http://haxx.sinequanon.net/2009/03/less-sudo-and-devnull-permission-denied/</link>
	<description></description>
	<lastBuildDate>Tue, 17 Jan 2012 18:42:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jesper</title>
		<link>http://haxx.sinequanon.net/2009/03/less-sudo-and-devnull-permission-denied/comment-page-1/#comment-877</link>
		<dc:creator>Jesper</dc:creator>
		<pubDate>Wed, 01 Jun 2011 13:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://haxx.sinequanon.net/?p=150#comment-877</guid>
		<description>Interesting, thanks for the analysis. I just stumbled on this problem myself. 

Scenario:
$ export LESSHISTFILE=/dev/null
$ sudo -s
# history&#124;less (or any other invocation of less I guess)
*poof* /dev/null is 700, thus unusable for non-root users.

I guess the sudo -s carried over the LESSHISTFILE variable to the privileged shell, and less got a bit too eager about permissions on what it believed to be its history file.</description>
		<content:encoded><![CDATA[<p>Interesting, thanks for the analysis. I just stumbled on this problem myself. </p>
<p>Scenario:<br />
$ export LESSHISTFILE=/dev/null<br />
$ sudo -s<br />
# history|less (or any other invocation of less I guess)<br />
*poof* /dev/null is 700, thus unusable for non-root users.</p>
<p>I guess the sudo -s carried over the LESSHISTFILE variable to the privileged shell, and less got a bit too eager about permissions on what it believed to be its history file.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

