You are not logged in.

#1 2015-03-29 16:23:13

mrawfull
Member
Registered: 2011-11-26
Posts: 25

efibootmgr without sudo

Lets say I want to reboot into windows. I need to change the boot order using sudo efibootmgr -n, but the problem is I need to type the root password everytime.
How to make this process passwordless? I tried making a sudoers rule for efibootmgr but no luck.

Offline

#2 2015-03-29 16:25:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: efibootmgr without sudo

What does "no luck" mean? Paste the rule.


Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-03-29 18:50:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: efibootmgr without sudo

Do you want help doing this with sudo, as your post implies, or do you want help doing it without sudo which is implied by your title?  Either one is possible, but only with better information.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2015-03-29 19:25:29

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: efibootmgr without sudo

A bit off-topic, but if you're booting from NVRAM entries can you not just use your firmware (BIOS) options to select the entry directly rather than changing the order every time?


Jin, Jîyan, Azadî

Offline

#5 2015-03-30 01:28:02

mrawfull
Member
Registered: 2011-11-26
Posts: 25

Re: efibootmgr without sudo

Well is there anyway to execute efibootmgr other than with sudo? I guess not.. Thanks anyway.

Offline

#6 2015-03-30 01:39:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: efibootmgr without sudo

What? I can think of at least one - but is that what you want?  Why do you dismissively assume there is no answer to your question?  We can help ... but help us help.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2025-03-24 22:27:51

Drelek
Member
Registered: 2024-06-20
Posts: 1

Re: efibootmgr without sudo

Sorry to necrobump, but I have the same question and this is the first result on google. Maybe I can word it better:

I'd like to use efibootmgr (or something else, I am indifferent) to reboot to windows with one click/command. `efibootmgr -n 0000; systemctl reboot` does not work as efibootmgr requires elevated permissions, however `sudo efibootmgr -n 0000; systemctl reboot` requires me to enter my password, which interferes with my 'one click/command' desire.

So, is there a way to set up efibootmgr to run without sudo? Or failing that, is there some other way to achieve the same result?

Offline

#8 2025-03-25 07:43:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,332

Re: efibootmgr without sudo

man sudoers

Offline

#9 2025-03-25 08:20:48

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,640
Website

Re: efibootmgr without sudo

Mod note: Closing this ancient thread.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

Board footer

Powered by FluxBB