I was expecting a quick dcli sync to magically turn my new OS to everything-as-it-was-on-my-old-OS, but (to the surprise of exactly NOBODY except myself), this (of course) didn't happen and I had to fuck around with a bunch of extra things and do a lot of debugging. But it's finally here! I'm closer than ever to saying „I use Arch btw”!
18 lines
No EOL
1 KiB
Markdown
18 lines
No EOL
1 KiB
Markdown
# WARNING!!!
|
|
**MAKE SURE YOUR `/etc/sudoers` CONTAINS AT LEAST**
|
|
```sudoers
|
|
<YOUR USER NAME> ALL = (root) NOPASSWD: /home/<YOUR USER NAME>/.config/hypr/scripts/volume-root.sh
|
|
```
|
|
**OR THAT YOU DISABLED THE VOLUME-KEY DAEMON, BEFORE YOU LOG INTO HYPRLAND! OTHERWISE, YOU'LL TRAP YOURSELF IN AN INFINITE "Ran out of password retires" LOOP WHEN TRYING TO USE `sudo`!!!**
|
|
## All changes to `/etc/sudoers`
|
|
Appended at the end:
|
|
```sudoers
|
|
|
|
|
|
|
|
## My own changes
|
|
guzio ALL = (root) NOPASSWD: /home/guzio/.config/hypr/scripts/rootedinit.sh
|
|
guzio ALL = (root) NOPASSWD: /home/guzio/.config/hypr/scripts/volume-root.sh
|
|
guzio ALL = (root) NOPASSWD: /usr/bin/htop
|
|
```
|
|
Those changes WILL NEVER be added to a `dcli` hook-script because editing `/etc/sudoers` requires UTMOST CAUTION (there is a reason it's supposed to be done with `SUDO_EDITOR=/bin/nano visudo`) and Bash scripts doing text edits simply aren't reliable enough for tasks this sensitive. I'll only trust custom C/C++/Rust/Go/other-systems-language code that interacts with `sudo`'s APIs directly. |