<?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=7204&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] ifupdown removes insecure files after chmod]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7204</link>
		<description><![CDATA[The most recent posts in [SOLVED] ifupdown removes insecure files after chmod.]]></description>
		<lastBuildDate>Fri, 23 May 2025 23:11:36 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] ifupdown removes insecure files after chmod]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55745#p55745</link>
			<description><![CDATA[<p>In case anyone else has trouble with this, to regenerate the daemons, I regenerated them by turning off internet with <span class="bbc">sudo /sbinsudo /sbin/ifdown wlan0</span>, running <span class="bbc">/sbin/wpa_supplicant -iwlan0</span> and <span class="bbc">sudo killall wpa_supplicant</span> daemons (the original one was still going apparently), then running <span class="bbc">sudo /sbin/ifup wlan0</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (paculino)]]></author>
			<pubDate>Fri, 23 May 2025 23:11:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55745#p55745</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] ifupdown removes insecure files after chmod]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55718#p55718</link>
			<description><![CDATA[<p>I&#039;m pretty sure that everything in /run will be regenerated on reboot. If you changed permissions on the executables in /sbin, those won&#039;t revert. You should do that manually.</p><p>Instead of changing permissions, you could give your user sudo privs without password for just the required commands. Then you can use those commands in destkop launchers without having to enter a password. <br />I have something like this in /etc/sudoers.d/usercommands. (Hint: visudo /etc/sudoers.d/usercommands)</p><div class="codebox"><pre><code>Cmnd_Alias	HALT = /sbin/shutdown, /sbin/halt, /sbin/poweroff, /sbin/reboot
Cmnd_Alias	NET = /sbin/ifconfig, /sbin/ifup, /sbin/ifdown

fred    ALL=NOPASSWD: HALT, NET</code></pre></div><p>For brightness, your user can run xrandr.</p><div class="codebox"><pre><code># $monitor1 is the name of the connected monitor from xrandr without any options.
# $bright1 is a number between 0.0 and 1.0. 
xrandr --output $monitor1 --brightness &quot;$bright1&quot;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Thu, 22 May 2025 16:49:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55718#p55718</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] ifupdown removes insecure files after chmod]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55712#p55712</link>
			<description><![CDATA[<p>Hello, I&#039;ve finally gotten around to trying to add GUI widgets to my awesome-wm config. Of course, in terminal, I needed sudo to mess with wifi (I use sudo /sbin/ifdown wlan0 and sudo /sbin/ifup wlan0) and brightness. For brightness I just gave all execution rights, but for internet, I gave all xrw. I did this recursively and for /run/wpa_supplicant (now /run/wpa_supplicant.wlan0.pid is missing; I got a warning about insecure file), /run/network (now ./ifstate and ./.ifstate.lock and the ifstant.tmp&#160; and ifstate.wlan0 are all messed up). How should I go about fixing this? I still have internet of course, since the daemon isn&#039;t working to turn off internet connection, but I assume that purging ifupdown to reinstall would mess it up, and pre-downloading it to later install with dpkg -i seems a bit risky, since it may not work and then I might have no internet. Only files in /sbin and /run are affected, but not /etc, so my configs are safe as far as I can tell... Should I just debootstrap a new install?</p>]]></description>
			<author><![CDATA[dummy@example.com (paculino)]]></author>
			<pubDate>Thu, 22 May 2025 09:35:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55712#p55712</guid>
		</item>
	</channel>
</rss>
