Merge pull request 'refs #2789 Adds necessary ogboot commands to sudoers' (#46) from sudoers-ogboot into main
ogrepository/pipeline/head This commit looks good
Details
ogrepository/pipeline/head This commit looks good
Details
Reviewed-on: #46main
commit
8bd472fd6b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue