You are not logged in.
Pages: 1
Topic closed
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
Offline
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
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
Well is there anyway to execute efibootmgr other than with sudo? I guess not.. Thanks anyway.
Offline
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
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
man sudoers
Offline
Mod note: Closing this ancient thread.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
Pages: 1
Topic closed