allow user to kill and start cage-tty1.service

This commit is contained in:
Stefan Kempinger 2026-04-16 22:20:00 +02:00
parent 5d6a7ad2b4
commit c94c2b85c2
Signed by: CrazyChaoz
SSH key fingerprint: SHA256:YOwyLUwjYN0SbH23u/6sadxTPxiCq8DRCW69qpWhjA8

View file

@ -109,7 +109,11 @@
users = [ "user" ]; users = [ "user" ];
commands = [ commands = [
{ {
command = "/run/current-system/sw/bin/systemctl restart cage-tty1.service"; command = "/run/current-system/sw/bin/systemctl start cage-tty1.service";
options = [ "NOPASSWD" ];
}
{
command = "/run/current-system/sw/bin/systemctl kill cage-tty1.service";
options = [ "NOPASSWD" ]; options = [ "NOPASSWD" ];
} }
]; ];