<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=3097&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / There is a bug in beowulf's /etc/profile file]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=3097</link>
		<description><![CDATA[The most recent posts in There is a bug in beowulf's /etc/profile file.]]></description>
		<lastBuildDate>Tue, 08 Oct 2019 13:32:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: There is a bug in beowulf's /etc/profile file]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=18180#p18180</link>
			<description><![CDATA[<p>It was correct the first way. If id is zero, you are root and need the sbin directories. If id is not zero, you are user and get games in your path.</p><p>If you think there&#039;s a problem with root&#039;s path in beowulf, I would say you are correct, but you mis-identified the cause of the problem.</p><p>In Beowulf:<br />- If you use <span class="bbc">su</span> to become root, you keep the user&#039;s PATH, and need to use the full path to commands in *sbin, like this: <span class="bbc">/sbin/reboot</span><br />- If you use <span class="bbc">su -</span> to become root, you get root&#039;s PATH and can run commands in *sbin directly, like this: <span class="bbc">reboot</span></p><p>To keep the old behavior, see <a href="https://dev1galaxy.org/viewtopic.php?pid=16456#p16456" rel="nofollow">https://dev1galaxy.org/viewtopic.php?pid=16456#p16456</a></p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Tue, 08 Oct 2019 13:32:25 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=18180#p18180</guid>
		</item>
		<item>
			<title><![CDATA[There is a bug in beowulf's /etc/profile file]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=18179#p18179</link>
			<description><![CDATA[<p>There are two lines that are inverted and modify the root path</p><p>It&#039;s like this:</p><p>if [ &quot;`id -u`&quot; -eq 0 ]; then<br />&#160; PATH=&quot;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&quot;<br />else<br />&#160; PATH=&quot;/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games&quot;<br />fi<br />export PATH</p><p>It should be like this:</p><p>if [ `id -u`&quot; -eq 0 ]; then<br />&#160; &#160;PATH=&quot;/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games&quot;<br />else<br />&#160; PATH=&quot;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&quot;<br />fi<br />export PATH</p><p>you can check it simply by trying a user@machine# reboot</p><p>Change order the lines and resolved</p><p>a greeting</p>]]></description>
			<author><![CDATA[dummy@example.com (basati)]]></author>
			<pubDate>Tue, 08 Oct 2019 12:47:09 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=18179#p18179</guid>
		</item>
	</channel>
</rss>
