<?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=7794&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Shutdown without being prompted for sudo password]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7794</link>
		<description><![CDATA[The most recent posts in [SOLVED] Shutdown without being prompted for sudo password.]]></description>
		<lastBuildDate>Thu, 12 Feb 2026 14:50:04 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Shutdown without being prompted for sudo password]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=62116#p62116</link>
			<description><![CDATA[<p>@gipi</p><p>I&#039;m glad you found a working solution.</p><p>I believe your original config should of worked.&#160; But the user has to be part of the sudo group.</p><p>You can add the current user to the sudo group with this command.</p><div class="codebox"><pre><code>sudo usermod -aG sudo $USER</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Thu, 12 Feb 2026 14:50:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=62116#p62116</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Shutdown without being prompted for sudo password]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=61999#p61999</link>
			<description><![CDATA[<p>Thanks ralph.ronnquist, that did it. Editing visudo so that its like this:</p><div class="codebox"><pre><code>%sudo ALL=(ALL:ALL) ALL
myusername ALL=(ALL:ALL) NOPASSWD: /usr/sbin/shutdown</code></pre></div><p>did the job. I.E. the specific override must be after the %sudo line.</p>]]></description>
			<author><![CDATA[dummy@example.com (gipi)]]></author>
			<pubDate>Sat, 07 Feb 2026 21:42:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=61999#p61999</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Shutdown without being prompted for sudo password]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=61980#p61980</link>
			<description><![CDATA[<p>Nice, that&#039;d do it... And learn me for focusing on the specific line rather than looking at the whole code block. <br />Can replicate the OPs problem here if there&#039;s another match later in the file (or in /etc/sudoers.d/*, since &#039;@includedir /etc/sudoers.d&#039; appears to be the last entry in a default install).</p><p>Aside, if there&#039;s a prize for most intimidatingly dense man page, I&#039;m pretty confident &#039;sudoers&#039; is a strong contender. <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sat, 07 Feb 2026 14:41:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=61980#p61980</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Shutdown without being prompted for sudo password]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=61979#p61979</link>
			<description><![CDATA[<div class="quotebox"><cite>the man page wrote:</cite><blockquote><div><p> When multiple entries match for a&#160; user,&#160; they&#160; are&#160; applied&#160; in&#160; order. Where&#160; there&#160; are multiple matches, the last match is used (which is not necessarily the most specific match).</p></div></blockquote></div><p>In your case it looks like</p><div class="codebox"><pre><code>%sudo ALL=(ALL:ALL) ALL</code></pre></div><p>is the last matching entry, at least when the shutdown user is in the <span class="bbc">sudo</span> group.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 07 Feb 2026 13:52:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=61979#p61979</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Shutdown without being prompted for sudo password]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=61978#p61978</link>
			<description><![CDATA[<div class="codebox"><pre><code>steve ALL=(ALL) NOPASSWD: /usr/sbin/shutdown</code></pre></div><p>Works fine here (excalibur):</p><div class="codebox"><pre><code>$ sudo shutdown -k now

Broadcast message from root@damnation (pts/2) (Sun Feb  8 02:38:31 2026):

The system is going down to maintenance mode NOW!

Broadcast message from root@damnation (pts/2) (Sun Feb  8 02:38:31 2026):

The system is going down to maintenance mode NOW!

Shutdown cancelled.</code></pre></div><p>/usr/sbin/shutdown is the realpath to the shutdown binary on your system, right? No symlink shenanigans or anything?</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sat, 07 Feb 2026 13:39:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=61978#p61978</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Shutdown without being prompted for sudo password]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=61977#p61977</link>
			<description><![CDATA[<p>I would give this a try:</p><div class="codebox"><pre><code>myusername ALL=(root) NOPASSWD: /usr/sbin/shutdown</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sat, 07 Feb 2026 13:38:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=61977#p61977</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Shutdown without being prompted for sudo password]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=61976#p61976</link>
			<description><![CDATA[<div class="quotebox"><cite>RedGreen925 wrote:</cite><blockquote><div><div class="codebox"><pre><code>zeus    ALL=(ALL:ALL) NOPASSWD: ALL</code></pre></div></div></blockquote></div><p>Sure, if the goal is to completely negate any security benefit of sudo and make &#039;zeus&#039; effectively root. The OP is trying to match a specific command, not allow everything under the sun.</p><div class="quotebox"><cite>gipi wrote:</cite><blockquote><div><p>What am I missing?</p></div></blockquote></div><p>Possibly the incomplete host specification... Testing</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sat, 07 Feb 2026 13:31:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=61976#p61976</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Shutdown without being prompted for sudo password]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=61974#p61974</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>What am I missing?</p></div></blockquote></div><p>Appears you have it formatted incorrectly. This what I use forit with a file in the sudoers.d directory to tell it the settings to use, it works flawlessly.</p><div class="quotebox"><blockquote><div><p>root@9600k:~# cat /etc/sudoers.d/zeus <br /># User privilege specification<br />zeus&#160; &#160; ALL=(ALL:ALL) NOPASSWD: ALL</p></div></blockquote></div><p>And you do not to be in the sudo group to use it this way.</p><div class="codebox"><pre><code>zeus@9600k:~$ groups
zeus cdrom floppy audio dip video plugdev users netdev bluetooth lpadmin scanner</code></pre></div><div class="codebox"><pre class="vscroll"><code>zeus@9600k:~$ fdisk -l
fdisk: cannot open /dev/nvme1n1: Permission denied
fdisk: cannot open /dev/nvme0n1: Permission denied
fdisk: cannot open /dev/sda: Permission denied
fdisk: cannot open /dev/sdb: Permission denied

zeus@9600k:~$ sudo fdisk -l
Disk /dev/nvme1n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: SPCC M.2 PCIe SSD                       
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: CBEC129E-0D94-4784-A2DC-3E5F15FBF4C3

Device             Start        End   Sectors   Size Type
/dev/nvme1n1p1      2048     411647    409600   200M EFI System
/dev/nvme1n1p2    411648   84297727  83886080    40G Linux filesystem
/dev/nvme1n1p3  84297728  252069887 167772160    80G Linux filesystem
/dev/nvme1n1p4 252069888 1000215182 748145295 356.7G Linux filesystem

Disk /dev/nvme0n1: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: CT4000P3SSD8                            
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 9DF2CDC4-F766-486D-AA06-ADDFBAEF6A1C

Device              Start        End    Sectors  Size Type
/dev/nvme0n1p1       2048     411647     409600  200M EFI System
/dev/nvme0n1p2     411648   84297727   83886080   40G Linux filesystem
/dev/nvme0n1p3   84297728  252069887  167772160   80G Linux filesystem
/dev/nvme0n1p4  252069888 1594247167 1342177280  640G Linux filesystem
/dev/nvme0n1p5 1594247168 7814035455 6219788288  2.9T Linux filesystem

Disk /dev/sda: 447.13 GiB, 480103981056 bytes, 937703088 sectors
Disk model: MKNSSDE3480GB   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D4AAE03C-25EB-4FF0-BA58-E541CA6CDD77

Device         Start       End   Sectors   Size Type
/dev/sda1         40    409639    409600   200M EFI System
/dev/sda2     409640  84295719  83886080    40G Linux filesystem
/dev/sda3   84295720 235046911 150751192  71.9G Linux filesystem
/dev/sda4  235046912 937177087 702130176 334.8G Linux filesystem

Disk /dev/sdb: 5.46 TiB, 6001175126016 bytes, 11721045168 sectors
Disk model: WDC WD60EZRZ-00G
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 8057E6FD-95D1-4FAA-A427-E687AB7F0423

Device     Start         End     Sectors  Size Type
/dev/sdb1   2048 11721045134 11721043087  5.5T Linux filesystem</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Sat, 07 Feb 2026 13:13:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=61974#p61974</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Shutdown without being prompted for sudo password]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=61971#p61971</link>
			<description><![CDATA[<p>I am using openbox and Excalibur, and I can&#039;t figure out how to execute /usr/sbin/shutdown without being prompted to input a password. I have edited visudo to look like this:</p><div class="codebox"><pre><code># User privilege specification
root ALL=(ALL:ALL) ALL
myusername ALL=(ALL)ALL
myusername ALL=(ALL) NOPASSWD: /usr/sbin/shutdown

#Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL</code></pre></div><p>but still when I, logged in as myusername, type &#039;sudo /usr/sbin/shutdown -h now&#039; I need to give a password. What am I missing? This wasn&#039;t an issue on daedalus.</p>]]></description>
			<author><![CDATA[dummy@example.com (gipi)]]></author>
			<pubDate>Sat, 07 Feb 2026 12:44:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=61971#p61971</guid>
		</item>
	</channel>
</rss>
