<?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>Running UNIX &#187; linux</title>
	<atom:link href="http://www.runningunix.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.runningunix.com</link>
	<description>UNIX/Solaris tips, tricks, and advice</description>
	<lastBuildDate>Sun, 25 Apr 2010 17:33:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>sudo loses environment variables</title>
		<link>http://www.runningunix.com/2008/06/sudo-loses-environment-variables/</link>
		<comments>http://www.runningunix.com/2008/06/sudo-loses-environment-variables/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 23:42:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HPUX]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://www.cybersand.com/blog/?p=10</guid>
		<description><![CDATA[Tricky. When a user uses sudo to &#8220;su&#8221; to another user, certain environment variables will not remain.
From the man page:
Variables that control how dynamic loading and binding is done can be used to subvert the program that sudo runs. To combat this the LD_*, _RLD_*, SHLIB_PATH (HP-UX only), and LIBPATH (AIX only) environment variables are [...]]]></description>
			<content:encoded><![CDATA[<p>Tricky. When a user uses sudo to &#8220;su&#8221; to another user, <strong>certain </strong>environment variables will not remain.</p>
<p>From the man page:</p>
<blockquote><p><code>Variables that control how dynamic loading and binding is done can be used to subvert the program that sudo runs. To combat this the LD_*, _RLD_*, SHLIB_PATH (HP-UX only), and LIBPATH (AIX only) environment variables are removed from the environment passed on to all commands executed. sudo will also remove the IFS, ENV, BASH_ENV, KRB_CONF, KRBCONFDIR, KRBTKFILE, KRB5_CONFIG, LOCALDOMAIN, RES_OPTIONS, HOSTALIASES, NLSPATH, PATH_LOCALE, TERMINFO, TERMINFO_DIRS and TERMPATH variables as they too can pose a threat. If the TERMCAP variable is set and is a pathname, it too is ignored. Additionally, if the LC_* or LANGUAGE<br />
variables contain the / or % characters, they are ignored. If sudo has been compiled with SecurID support, the VAR_ACE, USR_ACE and DLC_ACE variables are cleared as well. The list of environment variables that sudo clears is contained in the output of sudo -V when run as root.</code></p></blockquote>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.runningunix.com%2F2008%2F06%2Fsudo-loses-environment-variables%2F&amp;linkname=sudo%20loses%20environment%20variables"><img src="http://www.runningunix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.runningunix.com/2008/06/sudo-loses-environment-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increasing socket buffer size in Linux</title>
		<link>http://www.runningunix.com/2008/02/increasing-socket-buffer-size-in-linux/</link>
		<comments>http://www.runningunix.com/2008/02/increasing-socket-buffer-size-in-linux/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 22:02:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.cybersand.com/blog/?p=7</guid>
		<description><![CDATA[Got error message:
2008-02-25 16:53:21.944 Tangosol Coherence AE 3.2.2/371 (thread=Main Thread, member=n/a): UnicastUdpSocket failed to set receive buffer size to 1428 packets (2096304 bytes); actual size is 89 packets (131071 bytes). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.
Add this to /etc/sysctl.conf and reload [...]]]></description>
			<content:encoded><![CDATA[<p>Got error message:<br />
<code>2008-02-25 16:53:21.944 Tangosol Coherence AE 3.2.2/371 <warning></warning>(thread=Main Thread, member=n/a): UnicastUdpSocket failed to set receive buffer size to 1428 packets (2096304 bytes); actual size is 89 packets (131071 bytes). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.</code></p>
<p>Add this to /etc/sysctl.conf and reload with &#8220;sysctl -p&#8221;:</p>
<p><code># increase TCP max buffer size setable using setsockopt()<br />
net.core.rmem_max = 16777216<br />
net.core.wmem_max = 16777216</code></p>
<p>Check current values with &#8220;sysctl net.core.wmem_max&#8221;</p>
<p>RHEL 3</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.runningunix.com%2F2008%2F02%2Fincreasing-socket-buffer-size-in-linux%2F&amp;linkname=Increasing%20socket%20buffer%20size%20in%20Linux"><img src="http://www.runningunix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.runningunix.com/2008/02/increasing-socket-buffer-size-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Port redirection using iptables</title>
		<link>http://www.runningunix.com/2008/02/port-redirection-using-iptables/</link>
		<comments>http://www.runningunix.com/2008/02/port-redirection-using-iptables/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 17:52:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[firewall]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[port 80]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://www.cybersand.com/blog/?p=6</guid>
		<description><![CDATA[A user did not have root access, but wanted his web server to appear to be listening on port 80. Came up a nice way to redirect port 80 requests to another port, where he ran his web server.
iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8070
 
]]></description>
			<content:encoded><![CDATA[<p>A user did not have root access, but wanted his web server to appear to be listening on port 80. Came up a nice way to redirect port 80 requests to another port, where he ran his web server.</p>
<pre>iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8070</pre>
<pre> </pre>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.runningunix.com%2F2008%2F02%2Fport-redirection-using-iptables%2F&amp;linkname=Port%20redirection%20using%20iptables"><img src="http://www.runningunix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.runningunix.com/2008/02/port-redirection-using-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
