<?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=5209&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Replacing sudo.]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5209</link>
		<description><![CDATA[The most recent posts in Replacing sudo..]]></description>
		<lastBuildDate>Tue, 31 Oct 2023 19:54:33 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45179#p45179</link>
			<description><![CDATA[<p><span class="bbc">sup</span>?&#160; Compile-time configuration smells too much like those suck**ss tools.&#160; Definitely not my taste.</p><p>For a while now <span class="bbc">doas</span> has got <span class="bbc">persist</span> added on Linux too, so I see no reason any more not to use it.</p>]]></description>
			<author><![CDATA[dummy@example.com (yeti)]]></author>
			<pubDate>Tue, 31 Oct 2023 19:54:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45179#p45179</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45175#p45175</link>
			<description><![CDATA[<p><a href="https://sup.dyne.org/" rel="nofollow">https://sup.dyne.org/</a></p><p>This is apparently a replacement option</p>]]></description>
			<author><![CDATA[dummy@example.com (czeekaj)]]></author>
			<pubDate>Tue, 31 Oct 2023 17:58:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45175#p45175</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44382#p44382</link>
			<description><![CDATA[<p>There is also sudo -i to just pretty much login as root. </p><p>to make it request password everytime you might need to set alias in .bashrc when sudo is invoked. <br />Although I am unsure how to block sudo -i using an alias.</p>]]></description>
			<author><![CDATA[dummy@example.com (czeekaj)]]></author>
			<pubDate>Sun, 17 Sep 2023 02:47:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44382#p44382</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44216#p44216</link>
			<description><![CDATA[<div class="quotebox"><cite>Devarch wrote:</cite><blockquote><div><p>Surprisingly, if this line is removed I do not need to tap password.</p></div></blockquote></div><p>It is because:</p><div class="codebox"><pre><code>     The last matching rule determines the action taken.  If no rule matches, the ac-
     tion is denied.</code></pre></div><p><a href="https://man.openbsd.org/doas.conf#DESCRIPTION" rel="nofollow">https://man.openbsd.org/doas.conf#DESCRIPTION</a></p><div class="quotebox"><cite>Devarch wrote:</cite><blockquote><div><p>What is wrong with using XAUTHORITY?</p></div></blockquote></div><p>Nothing, but you should have only one line matching the same username.</p><div class="codebox"><pre><code>permit nopass keepenv setenv { XAUTHORITY=/home/username/.Xauthority DISPLAY=:0.0 LANG LC_ALL } username as root</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (dpkg)]]></author>
			<pubDate>Mon, 11 Sep 2023 20:41:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44216#p44216</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37816#p37816</link>
			<description><![CDATA[<p>See <a href="https://en.wikipedia.org/wiki/Principle_of_least_privilege" rel="nofollow">https://en.wikipedia.org/wiki/Principle … _privilege</a> — what&#039;s the point of running the graphical interface as root if you only need to use elevated priviledges to save the modified file? That&#039;s what <span class="bbc">sudoedit</span> &amp; <span class="bbc">admin://</span> do.</p><div class="quotebox"><cite>Devarch wrote:</cite><blockquote><div><p>Almost every linux distribution lets run editor as root?</p></div></blockquote></div><p>Almost every Linux distribution expressly advises against running editor GUIs as root. That&#039;s why <span class="bbc">sudoedit</span> &amp; <span class="bbc">admin://</span> exist. The latter is the default for GNOME and can also be used in the file manager so that can be operated without having to run the GUI itself as root.</p><p>EDIT: just for the record this works fine in my sway (Wayland) desktop:</p><div class="codebox"><pre><code>doas mousepad /etc/fstab</code></pre></div><p>I didn&#039;t think that was supposed to be possible <img src="https://dev1galaxy.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 05 Oct 2022 19:34:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37816#p37816</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37815#p37815</link>
			<description><![CDATA[<p>Head_on_a_Stick, hhank you for this hint.</p><p>What is wrong with using XAUTHORITY? Almost every linux distribution lets run editor as root? I use it to edit system files. Is there some security problem?</p>]]></description>
			<author><![CDATA[dummy@example.com (Devarch)]]></author>
			<pubDate>Wed, 05 Oct 2022 19:18:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37815#p37815</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37809#p37809</link>
			<description><![CDATA[<p>If you want to run a graphical text editor as root then either use one that takes advantage of the GVFS admin:// backend:</p><div class="codebox"><pre><code>gedit admin:///full/path/to/file</code></pre></div><p>Or stick with sudo:</p><div class="codebox"><pre><code>SUDO_EDITOR=geany sudoedit /path/to/file</code></pre></div><p>Set $SUDO_EDITOR in /etc/environment to make it permanent then just use plain <span class="bbc">sudoedit</span>.</p><p>Running the entire GUI editor as root is simply ridiculous. Don&#039;t do it.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 05 Oct 2022 05:06:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37809#p37809</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37807#p37807</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>Devarch wrote:</cite><blockquote><div><p>I still need password with doas inspite of</p></div></blockquote></div><p>Sorry to ask but you did replace <span class="bbc">username</span> with the actual username, right?</p><p>That syntax works for me with the Debian doas package provided the actual username is supplied.</p></div></blockquote></div><p>yes.</p><p>I&#039;ve discovered that if this line is present <br />permit persist keepenv setenv { XAUTHORITY=/home/username/.Xauthority DISPLAY=:0.0 LANG LC_ALL } :username</p><p>than this problem is present.</p><p>Surprisingly, if this line is removed I do not need to tap password.</p><p>But without this line I can not use geany or other staff as root.</p>]]></description>
			<author><![CDATA[dummy@example.com (Devarch)]]></author>
			<pubDate>Tue, 04 Oct 2022 21:33:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37807#p37807</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37805#p37805</link>
			<description><![CDATA[<div class="quotebox"><cite>Devarch wrote:</cite><blockquote><div><p>I still need password with doas inspite of</p></div></blockquote></div><p>Sorry to ask but you did replace <span class="bbc">username</span> with the actual username, right?</p><p>That syntax works for me with the Debian doas package provided the actual username is supplied.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Tue, 04 Oct 2022 15:40:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37805#p37805</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37804#p37804</link>
			<description><![CDATA[<p>It&#039;s not meant to allow all encompassing usage, that&#039;s what su is for. <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Camtaf)]]></author>
			<pubDate>Tue, 04 Oct 2022 08:47:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37804#p37804</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37796#p37796</link>
			<description><![CDATA[<p>I still need password with doas inspite of:</p><p>permit username as root<br />permit nopass username as root</p><p>in /etc/doas.conf</p><p>Strange</p>]]></description>
			<author><![CDATA[dummy@example.com (Devarch)]]></author>
			<pubDate>Mon, 03 Oct 2022 17:57:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37796#p37796</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37341#p37341</link>
			<description><![CDATA[<p>^</p><div class="codebox"><pre><code>./configure
make
doas make install</code></pre></div><p>Or add this to your shell initialisation file (<em>eg</em>, ~/.bashrc):</p><div class="codebox"><pre><code>alias sudo=&#039;/usr/bin/doas&#039;</code></pre></div><p>Then just carry on using <span class="bbc">sudo</span> as you always have done.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 04 Sep 2022 14:26:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37341#p37341</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37335#p37335</link>
			<description><![CDATA[<p>Hm, how would the following look in <span class="bbc">doas</span> style?<br />(Capt. Obviuos does not want to compile as root)</p><div class="codebox"><pre><code>$ ./configure
$ make
$ sudo make install</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (delgado)]]></author>
			<pubDate>Sun, 04 Sep 2022 12:45:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37335#p37335</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37328#p37328</link>
			<description><![CDATA[<p>As far as regular desktop users, &amp; small networks go, <strong>doas</strong> would be a better option for most distros.</p>]]></description>
			<author><![CDATA[dummy@example.com (Camtaf)]]></author>
			<pubDate>Sun, 04 Sep 2022 09:40:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37328#p37328</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replacing sudo.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37317#p37317</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>The creator of doas explains their reasons here:</p><p><a href="https://flak.tedunangst.com/post/doas" rel="nofollow">https://flak.tedunangst.com/post/doas</a></p></div></blockquote></div><p>I&#039;ve been listening to some of Ted Unangst&#039;s talks. He&#039;s very thorough about his approach to improving code.</p><p>Anyway, I&#039;ve been playing around with <span class="bbc">doas</span> and actively considering installing OpenBSD on the side. I like the more minimalist, no-hands-held environment.</p>]]></description>
			<author><![CDATA[dummy@example.com (brocashelm)]]></author>
			<pubDate>Sat, 03 Sep 2022 18:42:05 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37317#p37317</guid>
		</item>
	</channel>
</rss>
