<?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=3640&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [Solved] Password required for startup script]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3640</link>
		<description><![CDATA[The most recent posts in [Solved] Password required for startup script.]]></description>
		<lastBuildDate>Mon, 29 Jun 2020 16:24:23 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [Solved] Password required for startup script]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23114#p23114</link>
			<description><![CDATA[<p>All it&#039;s doing is checking how many lines containing &#039;load average&#039; uptime produced. So it&#039;s just testing if you can use sudo. But I&#039;ve not seen this technique before. And as bgstack15 said &quot;sudo -l /actual/command/to/run ; echo $?&quot; is probably better, it should not fail if you can run uptime but can&#039;t run the actual command.</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Mon, 29 Jun 2020 16:24:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23114#p23114</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Password required for startup script]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23102#p23102</link>
			<description><![CDATA[<p>Oh, so perhaps the tool is merely using uptime as a way to check if the user has full sudo access. Hm, I guess &quot;sudo -l /actual/command/to/run ; echo $?&quot; is more obtuse...</p>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Mon, 29 Jun 2020 14:12:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23102#p23102</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Password required for startup script]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23088#p23088</link>
			<description><![CDATA[<p>Here&#039;s the test in veracrypt:</p><div class="codebox"><pre><code>FILE* pipe = popen(&quot;sudo -n uptime 2&gt;&amp;1 | grep &#039;load average&#039; | wc -l&quot;, &quot;r&quot;);	</code></pre></div><p>I&#039;ve seen this test before, thanks to dzz (the other refracta dev):</p><div class="codebox"><pre><code>refractasnapshot-wrapper.sh:15:sudo_allowed=$(sudo -n uptime 2&gt;&amp;1 | grep load | wc -l)</code></pre></div><p>If the output is &#039;1&#039; then the user has sudo privs.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sun, 28 Jun 2020 22:50:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23088#p23088</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Password required for startup script]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23086#p23086</link>
			<description><![CDATA[<p>Got the hint from here: <a href="https://sourceforge.net/p/veracrypt/discussion/general/thread/604d12bba8/" rel="nofollow">https://sourceforge.net/p/veracrypt/dis … 04d12bba8/</a></p><p>There is some change between ASCII and Beowulf. This way it works.</p><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sun, 28 Jun 2020 19:25:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23086#p23086</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Password required for startup script]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23084#p23084</link>
			<description><![CDATA[<p>Intriguing that something wants to run uptime with sudo. I didn&#039;t think it took any special privileges to view that information. Maybe a script could be updated to exclude the &quot;sudo&quot; command in front of uptime.</p>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Sun, 28 Jun 2020 18:58:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23084#p23084</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Password required for startup script]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23062#p23062</link>
			<description><![CDATA[<p>Fixed it by adding /usr/bin/uptime to the priviligues specification for veracrypt in the sudoers. Found it somewhere in the sourceforge forum for veracrypt.</p><p>The sudoers entry reads like this now:</p><div class="codebox"><pre><code>$username$    ALL=(root)      NOPASSWD:       /usr/bin/veracrypt, /usr/bin/uptime</code></pre></div><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sat, 27 Jun 2020 21:45:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23062#p23062</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Password required for startup script]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23056#p23056</link>
			<description><![CDATA[<p>Well, found this hint in the net on <a href="https://wiki.archlinux.de/title/GNOME#Tipps_und_Tricks" rel="nofollow">https://wiki.archlinux.de/title/GNOME#Tipps_und_Tricks</a></p><p>Add export NO_AT_BRIDGE=1 to /etc/environment. </p><p>The dbind-warning error when calling up the script directly as shown in the previous post is gone.</p><p>Does not bring the complete solution. Still getting asked for user or root passwd. </p><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sat, 27 Jun 2020 15:30:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23056#p23056</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Password required for startup script]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23055#p23055</link>
			<description><![CDATA[<p>Tried to call the script with a sudo in front <span class="bbc">sudo /path/to/script.sh</span>, that does not work. </p><p>Then I directly started the script in a user terminal and got this error:</p><div class="codebox"><pre><code>(veracrypt:5104): dbind-WARNING **: 17:05:21.998: Couldn&#039;t register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.</code></pre></div><p>How do I have to interpret this?</p><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sat, 27 Jun 2020 15:12:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23055#p23055</guid>
		</item>
		<item>
			<title><![CDATA[[Solved] Password required for startup script]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23031#p23031</link>
			<description><![CDATA[<p>Beowulf, Mate desktop. I run a script during user login that opens a Veracrypt volume. Veracrypt is installed same way as in ASCII, same settings in sudoers, script copied from ASCII with same permissions. </p><p>Situation is that in Beowulf I am asked to enter either a user or the root password. What can be the reason for this changed behaviour?</p><p>Thanks for any idea, rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Fri, 26 Jun 2020 20:29:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23031#p23031</guid>
		</item>
	</channel>
</rss>
