Re: Enable OpenRC shutdown command for ALL users
Reply #5 –
As I said:
Just create/edit the .bashrc (or .zshrc, or w.e.) file in your home folder and add lines like
alias poweroff='loginctl poweroff'
Elogind isn't strictly necessary. Remember the classic priv-esc tools like sudo or doas also work for this if you enable no-password mode for these commands (and aliases work the same if you want not to keep typing sudo, sudo, sudo, etc.).
Hey, you can even use s6-sudo for this, like I do on my seatd install.