Allow rke user to run bootc

This commit is contained in:
Gerald Pinder
2025-05-18 14:03:48 -04:00
parent ab162e0aba
commit e434555c40
2 changed files with 2 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
Cmnd_Alias RKE_CMDS = /usr/bin/chown, /usr/bin/chmod, /usr/bin/mkdir, /usr/bin/systemctl, /usr/bin/cp, /usr/bin/find, /usr/bin/ls, /usr/bin/reboot, /usr/bin/install, /usr/bin/rke2, /usr/bin/firewall-cmd, /usr/bin/rm
Cmnd_Alias RKE_CMDS = /usr/bin/chown, /usr/bin/chmod, /usr/bin/mkdir, /usr/bin/systemctl, /usr/bin/cp, /usr/bin/find, /usr/bin/ls, /usr/bin/reboot, /usr/bin/install, /usr/bin/rke2, /usr/bin/firewall-cmd, /usr/bin/rm, /usr/bin/bootc
rke ALL=(root) NOPASSWD: RKE_CMDS

View File

@@ -9,7 +9,6 @@ fi
# Add 'rke' to docker group
echo "Adding 'rke' to docker group"
usermod -aG docker rke
usermod -aG systemd-journal rke
usermod -aG docker,systemd-journal,wheel rke
echo "Done"