Forum › Forums › Official Releases › antiX-21/22 “Grup Yorum” › Unable to shutdown from fluxbox menu
- This topic has 4 replies, 3 voices, and was last updated May 22-5:31 am by caesium5.
-
AuthorPosts
-
May 22, 2022 at 3:30 am #83424Member
caesium5
Hi all, first time Antix user, hope this is the correct sub-forum for this question.
Installed Antix 21 with antix-core and later added fluxbox, xorg, lightdm, terminator, geany, firefox-esr etc.
Updated visudo with “caesium ALL= NOPASSWD: /sbin/shutdown, /sbin/reboot”From the fluxbox menu, when I clicked on the menu item “reboot” and system will reboot.
However from the fluxbox menu, when I clicked on the menu item “shutdown”, nothing happens.Fluxbox menu
[exec] (Reboot) {sudo /sbin/reboot} [exec] (Shutdown) {sudo /sbin/shutdown -h now}Noticed that in terminal
sudo /sbin/reboot
– the system reboots without asking for password
sudo /sbin/shutdown -h now
– the system now says sudo: a password is requiredSo this requesting for password is causing the menu item “shutdown” not working.
Since visduo is already updated with NOPASSWD for both “reboot” and “shutdown”, just like “reboot”, “shutdown” should also be able to work without the extra step of password input, correct?Appreciate any help and advice.
- This topic was modified 11 months, 3 weeks ago by caesium5. Reason: Fixed typos
- This topic was modified 11 months, 3 weeks ago by caesium5. Reason: Fixed typo for clarity
May 22, 2022 at 4:01 am #83427MemberRobin
::try
sudo -- /sbin/shutdown -h now
in both places (menu and sudoers file)Since visduo is already updated with NOPASSWD for both “reboot” and “shutdown”, just like “reboot”, “shutdown” should also be able to work without the extra step of password input, correct?
yes.
Windows is like a submarine. Open a window and serious problems will start.
May 22, 2022 at 4:07 am #83428Moderator
christophe
::I just tried this, and it worked on my antiX core frugal:
sudo poweroffThat shut it down without password. 😉
- This reply was modified 11 months, 3 weeks ago by christophe.
confirmed antiX frugaler, since 2019
May 22, 2022 at 5:29 am #83430Membercaesium5
May 22, 2022 at 5:31 am #83431Membercaesium5
::sudo poweroffStrangely this works, thanks.
But will be good if someone can help to explain why “shutdown” still require password 😀
-
AuthorPosts
- You must be logged in to reply to this topic.