<?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=2686&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Beowulf: Link sbin]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=2686</link>
		<description><![CDATA[The most recent posts in Beowulf: Link sbin.]]></description>
		<lastBuildDate>Thu, 14 May 2020 16:45:17 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21724#p21724</link>
			<description><![CDATA[<div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>My current preferred method to revert to the old behavior is to add </p><div class="codebox"><pre><code>ALWAYS_SET_PATH yes</code></pre></div><p> to /etc/default/su.</p></div></blockquote></div><p>There are a few methods. Years ago I decided to change almost all the configuration files of Bash of my systems. Now, with Devuan my modifications work well.</p>]]></description>
			<author><![CDATA[dummy@example.com (PedroReina)]]></author>
			<pubDate>Thu, 14 May 2020 16:45:17 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21724#p21724</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21722#p21722</link>
			<description><![CDATA[<div class="quotebox"><cite>PedroReina wrote:</cite><blockquote><div><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>But then you won&#039;t be able to start graphical apps as root from that terminal. For that, you&#039;re supposed to use pkexec.</p></div></blockquote></div><p>I use an old trick for that:</p><div class="codebox"><pre><code>cp /home/user/.Xauthority /root/</code></pre></div></div></blockquote></div><p>Good to know, thanks. My current preferred method to revert to the old behavior is to add </p><div class="codebox"><pre><code>ALWAYS_SET_PATH yes</code></pre></div><p> to /etc/default/su. This is documented in &#039;man su&#039;.&#160; You can put the line in /etc/login.defs instead, but then you get an error message when you log in.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Thu, 14 May 2020 16:21:21 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21722#p21722</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21716#p21716</link>
			<description><![CDATA[<div class="quotebox"><cite>PedroReina wrote:</cite><blockquote><div><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>I tried copying .Xauthority and that didn&#039;t work for me in beowulf. Are you using that in beowulf now?</p></div></blockquote></div><p>No, in Beowulf no.</p></div></blockquote></div><p>I&#039;m working with Beowulf beta3 for a couple of days. Coping .Xauthority to the root home works for me. I can start X Window programs as root: bare user -&gt; su - -&gt; program. YMMV. Mine is lightdm, webkit2 greeter and KDE without much further tinkering.</p>]]></description>
			<author><![CDATA[dummy@example.com (PedroReina)]]></author>
			<pubDate>Thu, 14 May 2020 07:12:44 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21716#p21716</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=14503#p14503</link>
			<description><![CDATA[<p>Just for the records, it may be off topic: I&#039;m watching the <em>testing</em> of beowulf, but in the not to far future I want to distribute a <em>stable</em> operating system to others which <em>I have to maintain!</em>&#160; Quoting my 2nd <a href="https://dev1galaxy.org/viewtopic.php?pid=13203#p13203" rel="nofollow">post to dev1galaxy</a>:</p><div class="quotebox"><cite>guuml.dev1 wrote:</cite><blockquote><div><p>... minimalistic devuan/jessie with xfce ... You should remember that <span class="bbc">su -</span> is your friend. BTW: the last few years on LMDE2 betsy I was used to type <span class="bbc">sudo su</span>. Unfortunately some time ago <span class="bbu">a guy</span> (new to GNU/Linux but interested to learn) <span class="bbu">asked me about the differences about <span class="bbc">su</span> and <span class="bbc">sudo</span> and</span> why both packages are needed. My answer was not very helpful to him because it was much too detailed ...</p></div></blockquote></div><p><strong>#1:</strong> Devuan does the right thing: During <strong>installation</strong> you have to&#160; give two passwords for two accounts. One for root and one for yourself (UID=1000). And there are two home directories, see /etc/passwd.</p><p><strong>#2:</strong> Since decades i&#039;m used to type <span class="bbc">su -</span> <em>and</em> the right password to gain a root shell, where I can do everything. YES, including shot me knee and break every toe afterwards. You&#039;re warned.</p><p><strong>#3:</strong> On the other hand <span class="bbc">sudo ...</span> asks for confirmation with <em>my own password</em>. Just to remember that UID=1000 is able to <span class="bbs">ruin</span> compromise the system, too.</p><p>Back to topic: IMHO there should be a link from <span class="bbc">/sbin/</span> to <span class="bbc">/usr/sbin/</span> (just in case the merge is done:-(</p><p>BTW: Some people are mounting the /usr via network, aka remote. And then mounting /usr/local from local?</p><p>PS: Should root be able to interact with user&#039;s X-server? I&#039;ve had never heard about <span class="bbc">pkexec</span> up to now but looks like policy-kit. I&#039;m going RTFM ...</p>]]></description>
			<author><![CDATA[dummy@example.com (guuml.dev1)]]></author>
			<pubDate>Wed, 20 Feb 2019 21:57:24 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=14503#p14503</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=14468#p14468</link>
			<description><![CDATA[<div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>I tried copying .Xauthority and that didn&#039;t work for me in beowulf. Are you using that in beowulf now?</p></div></blockquote></div><p>No, in Beowulf no.</p>]]></description>
			<author><![CDATA[dummy@example.com (PedroReina)]]></author>
			<pubDate>Tue, 19 Feb 2019 12:50:11 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=14468#p14468</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=14463#p14463</link>
			<description><![CDATA[<div class="quotebox"><cite>MiyoLinux wrote:</cite><blockquote><div><p> <span class="bbc">update-grub</span> ...<br />...file manager as root,</p></div></blockquote></div><p>Yep ~ I donno reasons either, but always &amp; still working is ..<span class="bbc">sudo update-grub</span>.<br />Oh shoot, I&#039;m in miyo-xtra/beowulf partition! ...better reboot to beowulf and check <img src="http://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[dummy@example.com (stanz)]]></author>
			<pubDate>Tue, 19 Feb 2019 04:29:56 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=14463#p14463</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=14453#p14453</link>
			<description><![CDATA[<div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>The problem you&#039;re running into is the change in root&#039;s path when you run <span class="bbc">su</span> in a terminal. That path no longer contains the sbins. If you use <span class="bbc">su -</span> instead, you&#039;ll get the root path that you&#039;re used to. But then you won&#039;t be able to start graphical apps as root from that terminal. For that, you&#039;re supposed to use pkexec. When you figure all that out, I&#039;ll read your posts. Until then, or until someone gives me good reasons not to do this, I&#039;m working around the problem.</p><div class="codebox"><pre><code># grep PATH /root/.bashrc
export PATH=&quot;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&quot;</code></pre></div><p>Oh yeah, the other workaround is to use the full path for commands.</p><div class="codebox"><pre><code>/sbin/blkid
/usr/sbin/update-grub</code></pre></div></div></blockquote></div><p>Thanks fsr. The &quot;full path&quot; answer is what I thought of after doing it the way that I did. I wasn&#039;t aware of <span class="bbc">su -</span>. Thanks.</p><p>As for opening items with pkexec, I have a couple of apps in the &quot;MiyoLinux Accessories&quot; that run as root. PCManFM and Lxappearance. The way that I solved that was to add a file for both of them in /usr/share/policykit-1/actions/</p><p>I just used one of the existing ones as a template and changed each instance of the original application&#039;s name in the existing file to the appropriate name of the application that I wanted to use it for in the file I was creating; such as, if I were using the synaptic file as an example, I replaced every instance of <span class="bbc">synaptic</span> with <span class="bbc">lxapppearance</span>...hope that makes sense. Also, I changed the icon used and named both files similarly to how the existing files are named.</p><p>Anyway, I can now open both PCManFM (as root) and Customize Look and Feel (as root) from the menu using pkexec. <img src="http://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Mon, 18 Feb 2019 22:06:22 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=14453#p14453</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=14451#p14451</link>
			<description><![CDATA[<p>I tried copying .Xauthority and that didn&#039;t work for me in beowulf. Are you using that in beowulf now?</p><p>I also tried <span class="bbc">xhost +</span> and that didn&#039;t work, either.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Mon, 18 Feb 2019 20:16:35 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=14451#p14451</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=14448#p14448</link>
			<description><![CDATA[<div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>But then you won&#039;t be able to start graphical apps as root from that terminal. For that, you&#039;re supposed to use pkexec.</p></div></blockquote></div><p>I use an old trick for that:</p><div class="codebox"><pre><code>cp /home/user/.Xauthority /root/</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (PedroReina)]]></author>
			<pubDate>Mon, 18 Feb 2019 20:07:52 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=14448#p14448</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=14443#p14443</link>
			<description><![CDATA[<p>The problem you&#039;re running into is the change in root&#039;s path when you run <span class="bbc">su</span> in a terminal. That path no longer contains the sbins. If you use <span class="bbc">su -</span> instead, you&#039;ll get the root path that you&#039;re used to. But then you won&#039;t be able to start graphical apps as root from that terminal. For that, you&#039;re supposed to use pkexec. When you figure all that out, I&#039;ll read your posts. Until then, or until someone gives me good reasons not to do this, I&#039;m working around the problem.</p><div class="codebox"><pre><code># grep PATH /root/.bashrc
export PATH=&quot;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&quot;</code></pre></div><p>Oh yeah, the other workaround is to use the full path for commands.</p><div class="codebox"><pre><code>/sbin/blkid
/usr/sbin/update-grub</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Mon, 18 Feb 2019 18:11:14 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=14443#p14443</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=14437#p14437</link>
			<description><![CDATA[<div class="quotebox"><cite>Panopticon wrote:</cite><blockquote><div><p>Has to be something to do with systemd.</p></div></blockquote></div><p>I dont think so. Just remember the history of the split:<br /><a href="http://lists.busybox.net/pipermail/busybox/2010-December/074114.html" rel="nofollow">http://lists.busybox.net/pipermail/busy … 74114.html</a></p>]]></description>
			<author><![CDATA[dummy@example.com (PedroReina)]]></author>
			<pubDate>Mon, 18 Feb 2019 16:23:10 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=14437#p14437</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=14436#p14436</link>
			<description><![CDATA[<p>^ I see, im not familiar with that message board but found more replies to the original message. Bit of light reading ahead maybe.</p>]]></description>
			<author><![CDATA[dummy@example.com (Panopticon)]]></author>
			<pubDate>Mon, 18 Feb 2019 15:54:59 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=14436#p14436</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=14435#p14435</link>
			<description><![CDATA[<p>Its a bit &lt;tl;dr&gt; and I was rather lazily hoping that someone would post the executive summary for us! I did try and work my way through it, but failed.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Mon, 18 Feb 2019 15:49:39 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=14435#p14435</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=14434#p14434</link>
			<description><![CDATA[<p>^ probably a bad idea, what would the need be to symlink all that? Has to be something to do with systemd.</p><p>From &quot;man hier&quot;</p><div class="codebox"><pre><code>/bin   This  directory  contains executable programs which are needed in single user mode and to bring
              the system up or repair it.</code></pre></div><div class="codebox"><pre><code>       /sbin  Like  /bin,  this directory holds commands needed to boot the system, but which are usually not
              executed by normal users.</code></pre></div><div class="codebox"><pre><code>       /usr/bin
              This is the primary directory for executable programs.  Most programs executed by normal  users
              which  are  not  needed  for  booting  or  for repairing the system and which are not installed
              locally should be placed in this directory.</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Panopticon)]]></author>
			<pubDate>Mon, 18 Feb 2019 15:44:47 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=14434#p14434</guid>
		</item>
		<item>
			<title><![CDATA[Re: Beowulf: Link sbin]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=14433#p14433</link>
			<description><![CDATA[<p>There is some discussion about merging some of the bins on the mailing list. I think it is /usr/bin and /bin as well as /usr/sbin and /sbin</p><p><a href="https://lists.dyne.org/lurker/message/20181116.091117.b44f9dfe.en.html" rel="nofollow">https://lists.dyne.org/lurker/message/2 … fe.en.html</a></p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Mon, 18 Feb 2019 09:52:19 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=14433#p14433</guid>
		</item>
	</channel>
</rss>
