<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3581&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / sbin PATH problems on Beowulf [SOLVED]]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3581</link>
		<description><![CDATA[The most recent posts in sbin PATH problems on Beowulf [SOLVED].]]></description>
		<lastBuildDate>Fri, 04 Sep 2020 19:40:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: sbin PATH problems on Beowulf [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24451#p24451</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Because <span class="bbc">su</span> can be used for things other ...</p></div></blockquote></div><p>I see.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Read <span class="bbc">man su</span> <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p></div></blockquote></div><p>Yes, my use of <span class="bbc">su</span> is rather limited to the basics, so I really have quite a bit of reading to do.<br />That&#039;s what you get from arriving to Linuxland late in life.&#160; 8^7</p><p>Thanks for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 04 Sep 2020 19:40:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24451#p24451</guid>
		</item>
		<item>
			<title><![CDATA[Re: sbin PATH problems on Beowulf [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24448#p24448</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Why not just get rid of the old <span class="bbc">su</span> and let the output be <span class="bbc">command not found</span>?</p></div></blockquote></div><p>Because <span class="bbc">su</span> can be used for things other than obtaining a root shell. Read <span class="bbc">man su</span> <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 04 Sep 2020 18:39:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24448#p24448</guid>
		</item>
		<item>
			<title><![CDATA[Re: sbin PATH problems on Beowulf [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24447#p24447</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... seems to be an error ...<br />... should be added to <span class="bbc">/etc/login.defs</span>.</p></div></blockquote></div><p>I see.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... call <span class="bbc">su</span> correctly:</p><div class="codebox"><pre><code>su -</code></pre></div><p>^ The <span class="bbc">-</span> is important.</p></div></blockquote></div><p>Of course it is.<br /><span class="bbc">su</span> won&#039;t work as <span class="bbs">intended</span> expected without it.</p><p>Q:<br />Why not just get rid of the old <span class="bbc">su</span> and let the output be <span class="bbc">command not found</span>?</p><p>Now we have sudo, su and su - ...</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>See <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905409" rel="nofollow">https://bugs.debian.org/cgi-bin/bugrepo … bug=905409</a></p></div></blockquote></div><p>Thanks for the link.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... a PITA to add a <span class="bbc">-</span> after the command?</p></div></blockquote></div><p>Yes.<br />I forget to do it because I am very much used to <span class="bbc">su</span>.<br />And I don&#039;t like sudo although it is convenient if properly used/configured.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 04 Sep 2020 18:34:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24447#p24447</guid>
		</item>
		<item>
			<title><![CDATA[Re: sbin PATH problems on Beowulf [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24443#p24443</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>I did not have <span class="bbc">/etc/default/su</span> and generating the file and adding <span class="bbc">ALWAYS SET PATH&#160; yes</span> did not work.</p></div></blockquote></div><p>That seems to be an error in the release notes, <span class="bbc">ALWAYS_SET_PATH yes</span> should be added to <span class="bbc">/etc/login.defs</span>.</p><p>Or just call <span class="bbc">su</span> correctly:</p><div class="codebox"><pre><code>su -</code></pre></div><p>^ The <span class="bbc">-</span> is important <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>whatever the reason for the change in how <span class="bbc">su</span> works, I hope it is a good/justified one and not another one of Poettering&#039;s wet dreams. It is a PITA.</p></div></blockquote></div><p>See <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905409" rel="nofollow">https://bugs.debian.org/cgi-bin/bugrepo … bug=905409</a></p><p>tl;dr: <span class="bbc">/bin/su</span> used to be supplied by the <a href="https://pkginfo.devuan.org/stage/ascii/ascii/login_4.4-4.1.html" rel="nofollow">login</a> package but it is now supplied by the <a href="https://pkginfo.devuan.org/stage/beowulf/beowulf/util-linux_2.33.1-0.1+devuan1~beowulf2.html" rel="nofollow">util-linux</a> package.</p><p>And is it really such a PITA to add a <span class="bbc">-</span> after the command?</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 04 Sep 2020 18:03:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24443#p24443</guid>
		</item>
		<item>
			<title><![CDATA[Re: sbin PATH problems on Beowulf [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24439#p24439</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>altoid wrote:</cite><blockquote><div><p>Would have been <em>mine</em> also ... 8⁷ |</p></div></blockquote></div><p>I did not have <span class="bbc">/etc/default/su</span> and generating the file and adding <span class="bbc">ALWAYS SET PATH&#160; yes</span> did not work.</p><p>What <em>did</em> work was ...</p><div class="codebox"><pre><code>root@devuan2:/home/groucho# export PATH=$PATH:~/usr/local/sbin</code></pre></div><div class="codebox"><pre><code>root@devuan2:/home/groucho# $echo $PATH
bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/usr/local/sbin: No such file or directory
root@devuan2:/home/groucho# </code></pre></div><p>Got it from <a href="https://wiki.debian.org/EnvironmentVariables" rel="nofollow">https://wiki.debian.org/EnvironmentVariables</a>:</p><p>--- snip ---<br />... after doing su, your PATH may not contain directories like /sbin, and many system administration commands will fail. There are several workarounds: <br />... </p><p>Put the system administration directories (/sbin, /usr/sbin, /usr/local/sbin) in your regular account&#039;s PATH (see EnvironmentVariables for help with this). </p><p>--- snip ---</p><p>BTW: whatever the reason for the change in how <span class="bbc">su</span> works, I hope it is a good/justified one and not another one of Poettering&#039;s wet dreams. It is a PITA.</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 04 Sep 2020 15:26:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24439#p24439</guid>
		</item>
		<item>
			<title><![CDATA[Re: sbin PATH problems on Beowulf [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22479#p22479</link>
			<description><![CDATA[<p>Ah, my bad. Thank you. :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (devian)]]></author>
			<pubDate>Mon, 08 Jun 2020 12:21:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22479#p22479</guid>
		</item>
		<item>
			<title><![CDATA[Re: sbin PATH problems on Beowulf [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22477#p22477</link>
			<description><![CDATA[<p>Refer to the &quot;Changes in su&quot;&#160; in the release notes: <a href="https://files.devuan.org/devuan_beowulf/Release_notes.txt" rel="nofollow">https://files.devuan.org/devuan_beowulf … _notes.txt</a></p><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Mon, 08 Jun 2020 12:18:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22477#p22477</guid>
		</item>
		<item>
			<title><![CDATA[sbin PATH problems on Beowulf [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22476#p22476</link>
			<description><![CDATA[<p>I just upgraded to Beowulf and found that /sbin is not on the system path for root.</p><p>This is surely a bug? </p><p>It means you cannot run fdisk etc.</p>]]></description>
			<author><![CDATA[dummy@example.com (devian)]]></author>
			<pubDate>Mon, 08 Jun 2020 12:12:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22476#p22476</guid>
		</item>
	</channel>
</rss>
