From 6ea7699ca5896eb74e47dac3445e4b6b7cc9016a Mon Sep 17 00:00:00 2001 From: lgromero Date: Mon, 22 Sep 2025 13:11:13 +0200 Subject: [PATCH] refs #2789 Adds necessary ogboot commands to sudoers --- etc/opengnsys-repository | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/etc/opengnsys-repository b/etc/opengnsys-repository index 6aa6b06..966c8f5 100644 --- a/etc/opengnsys-repository +++ b/etc/opengnsys-repository @@ -10,6 +10,25 @@ Cmnd_Alias MOUNT_RECOVERY = \ /usr/bin/umount /mnt/recovery/sys, \ /usr/bin/umount -l /mnt/recovery +Cmnd_Alias OGBOOT = \ + /opt/bin/oglivecli, \ + /usr/bin/chmod, \ + /usr/bin/chown, \ + /usr/bin/md5sum, \ + /usr/bin/smbpasswd, \ + /usr/bin/cat, \ + /usr/bin/tee, \ + /usr/bin/sed, \ + /usr/bin/gzip, \ + /usr/bin/lz4, \ + /usr/bin/cpio, \ + /usr/bin/find, \ + /bin/tee, \ + /usr/bin/dd, \ + /usr/bin/mkfs.ext4, \ + /usr/bin/rsync, \ + /opt/opengnsys/ogboot/lib/*.iso /mnt + Cmnd_Alias CHROOT_GRUB = \ /usr/sbin/chroot /mnt/recovery /usr/sbin/grub-install --target=i386-pc *, \ /usr/sbin/chroot /mnt/recovery /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg @@ -28,4 +47,4 @@ Cmnd_Alias KILL_BT = \ Cmnd_Alias PYTHON_OGREPO = /usr/bin/python3 /opt/opengnsys/ogrepository/bin/* # Permitir al usuario opengnsys ejecutar estos comandos sin contraseƱa -opengnsys ALL=(root) NOPASSWD: MOUNT_RECOVERY, CHROOT_GRUB, LOOP_KPARTX, KILL_BT, PYTHON_OGREPO +opengnsys ALL=(root) NOPASSWD: MOUNT_RECOVERY, CHROOT_GRUB, LOOP_KPARTX, OGBOOT, KILL_BT, PYTHON_OGREPO