<?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=6786&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6786</link>
		<description><![CDATA[The most recent posts in [SOLVED] Anyone know how to get doas working properly on devuan?.]]></description>
		<lastBuildDate>Fri, 20 Sep 2024 12:41:21 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52355#p52355</link>
			<description><![CDATA[<p>@bilhook @JWM-Kit</p><p>I reinstalled and doas works fine again for that purpose.&#160; Although, I did custom instead of doas no password.</p><p>Then, I did doas poweroff and doas reboot in their respective places. Now I can shutdown and reboot the way I want.</p><p>reinstalling sadly hasn&#039;t fixed my wine bug though.</p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Fri, 20 Sep 2024 12:41:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52355#p52355</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52352#p52352</link>
			<description><![CDATA[<p>After openssl, I don&#039;t care to see sudo on Debian security.<br />I hope that simples doas is superior to sudo.</p>]]></description>
			<author><![CDATA[dummy@example.com (bilhook)]]></author>
			<pubDate>Fri, 20 Sep 2024 08:05:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52352#p52352</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52351#p52351</link>
			<description><![CDATA[<p>I started with computers and with Linux in 1998, RedHat 6, Knoppix, SysRescCd, DamnSmallLinux, soon got fed up with sudo, what with trying to get to work cdc-acm gprs &amp; usb modem &amp; having to make kernel module etc etc etc.<br />Up until only some weeks ago I didn&#039;t use doas.<br />I booted, logged in as root, masquerade MAC address, ifup.<br />Another login as user, startx.<br />This is a good post, this learning about fake executable.<br />I hope we hear from zapper how he&#039;s getting on.</p>]]></description>
			<author><![CDATA[dummy@example.com (bilhook)]]></author>
			<pubDate>Fri, 20 Sep 2024 07:36:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52351#p52351</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52343#p52343</link>
			<description><![CDATA[<p>@chris2be8</p><p>I agree. Lots of things aren&#039;t a problem for people who understand their system. The issue is non-technical users.&#160; Sadly it is those same user who will not made the effort to configure their system properly. Of course I&#039;m sure those users are using sudo, so it&#039;s not an issue.</p>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Thu, 19 Sep 2024 20:58:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52343#p52343</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52339#p52339</link>
			<description><![CDATA[<p>That *might* not matter if you are the *only* person who can use the system. But its a *big* concern for multi-user systems.</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Thu, 19 Sep 2024 16:34:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52339#p52339</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52331#p52331</link>
			<description><![CDATA[<p>Considering my concern of a fake executable in $HOME, my doas.conf will use the setenv option to override the path order to be more aligned with the expected Linux order (opposed to the original BSD order). Also, I have exclude the paths in $HOME. If I were to add them it would be at the end to be searched last.</p><div class="codebox"><pre><code>permit setenv {PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin} user as root</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Thu, 19 Sep 2024 14:51:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52331#p52331</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52302#p52302</link>
			<description><![CDATA[<p>Update, commands specified using nopass are limited to the restricted PATH.&#160; So that&#039;s good.</p><p>But it still seems that you could still do damage with a fake executable, even if a password is required.&#160; Just put it in the local path (in $HOME)&#160; like I did with the whoami example above and the user will be tricked to give the password.</p><p>of course a better example would be apt because <del>why would you</del> <em>you&#039;d be less likely to </em> use root for whoami.</p>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Wed, 18 Sep 2024 20:38:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52302#p52302</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52293#p52293</link>
			<description><![CDATA[<p>I&#039;m reporting the issue right now.</p>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Wed, 18 Sep 2024 19:02:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52293#p52293</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52290#p52290</link>
			<description><![CDATA[<p>I had already thought of that when I made my last post, so I tested it.</p><p>I created a fake whoami file in my local path ~/.local/bin/ that simply echos HAHA!&#160; The results:</p><p>regular user - runs the fake whoami<br />with sudo - runs the real whoami<br />with doas - runs the fake whoami</p><p>Yep security issue.&#160; <del>So you might want to use full path when adding nopass commands</del>.</p><p>update : Does not affect nopass commands. See post below.</p>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Wed, 18 Sep 2024 18:34:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52290#p52290</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52288#p52288</link>
			<description><![CDATA[<p>Check what happens if you put a program called poweroff in your path that does something else. Eg the following:</p><div class="codebox"><pre><code>#!/bin/bash
echo In fake poweroff script
id</code></pre></div><p>If that says it&#039;s running as root you have a security hole. A malicious person could add something like <span class="bbc">rm -rF /</span> to it.</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Wed, 18 Sep 2024 16:49:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52288#p52288</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52282#p52282</link>
			<description><![CDATA[<p>WOW! You&#039;re gonna test all possible configurations.&#160; LOL <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>OK I got it all figured out.&#160; It&#039;s so simple I can&#039;t believe it cause this much trouble. It can be summed up by saying the configuration is very specific. nopass is only allowed if it&#039;s exactly as it is in the file. So to sum this all up.</p><p>1. If you configure it with args then you have to use the args or it won&#039;t work<br />2. If you configure it with the full path you must use the full path - many graphical apps will need this. For example JWMKit. <br />3. The reverse is true if you configure as the command line only the command will not work if you do the full path.</p><p>So the args do work for me, but I tested without the args assuming it world work with or without them.<br />When I tested in the terminal it did not work because I did not use the full path as configured in my file.<br />This is why it worked with the scripts, and graphical apps, as they did use the full path.</p><p>So I will configure with multiple combinations.</p><p>full path with args<br />full path without args.<br />no path with args<br />no path without args</p><div class="codebox"><pre><code>permit nopass user as root cmd poweroff args -f
permit nopass user as root cmd poweroff
permit nopass user as root cmd /sbin/poweroff args -f
permit nopass user as root cmd /sbin/poweroff</code></pre></div><p>Does any one feel dumb now <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>To be fair I would expect it to know that poweroff is the same as /sbin/poweroff since /sbin/ is in the exec path.&#160; Also I would expect the args to be optional.&#160; Maybe requiring it to be exact adds extra security. I mean you could easily manipulate the exec path to hack the system. right?</p><p>In a way we were all correct, it&#039;s just the configuration wasn&#039;t specific enough for zappers setup where he wanted to use both the commandline (no path with args) and jwmkit (path, and no args)</p>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Wed, 18 Sep 2024 15:11:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52282#p52282</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52275#p52275</link>
			<description><![CDATA[<p>installed seatd &amp; lightdm, lightdm removes libsystemd0<br />failed to fire up lightdm<br />there&#039;s no README<br />tried alt sysrq r e i s u<br />don&#039;t know if I can config lightdm on the fly<br />sorry, don&#039;t have time</p>]]></description>
			<author><![CDATA[dummy@example.com (bilhook)]]></author>
			<pubDate>Wed, 18 Sep 2024 08:59:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52275#p52275</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52274#p52274</link>
			<description><![CDATA[<p>installed seatd (doesn&#039;t remove libsystemd0)<br />purged dummy-logind</p><p>works</p><p>will repeat with seatd &amp; lightdm (if I can)</p>]]></description>
			<author><![CDATA[dummy@example.com (bilhook)]]></author>
			<pubDate>Wed, 18 Sep 2024 08:39:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52274#p52274</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52273#p52273</link>
			<description><![CDATA[<p>I installed libpam-elogind which purged dummy-logind &amp; libsystemd0<br />user in X, doas poweroff -f, works</p><p>will repeat with seatd</p>]]></description>
			<author><![CDATA[dummy@example.com (bilhook)]]></author>
			<pubDate>Wed, 18 Sep 2024 08:27:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52273#p52273</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Anyone know how to get doas working properly on devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52272#p52272</link>
			<description><![CDATA[<p>I just<br />permit nopass user as root cmd poweroff args -f<br />in UXTerm in X<br />it works</p><p>I will replace dummy-logind with vanilla, and do again<br />I&#039;ll be back</p><p>Also I use xserver-xorg-legacy /etc/Xwrapper.config<br />and I don&#039;t use a login manager</p><p>aaaggghhh!</p>]]></description>
			<author><![CDATA[dummy@example.com (bilhook)]]></author>
			<pubDate>Wed, 18 Sep 2024 08:15:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52272#p52272</guid>
		</item>
	</channel>
</rss>
