Skip to content

Commit

Permalink
OpenNebula#3103 Updated command lists
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 committed Mar 21, 2019
1 parent 859677f commit 504084e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/vmm_mad/remotes/lib/lxd/mapper/mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ class Mapper
:e2fsck => 'sudo e2fsck',
:resize2fs => 'sudo resize2fs',
:xfs_growfs => 'sudo xfs_growfs',
:rbd => 'sudo rbd-nbd --id'
:rbd => 'sudo rbd-nbd --id',
:xfs_admin => 'sudo xfs_admin',
:tune2fs => 'sudo tune2fs'
}

#---------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/vmm_mad/remotes/lib/lxd/opennebula-lxd
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
# This file is meant for allow oneadmin to run the following commands as root
#

Cmnd_Alias ONE_MAPPER = /bin/lsblk, /sbin/losetup, /bin/mount, /bin/umount, /sbin/kpartx, /usr/bin/qemu-nbd, /bin/mkdir, /usr/bin/catfstab, /sbin/blkid, /sbin/e2fsck, /sbin/resize2fs, /usr/sbin/xfs_growfs, /usr/bin/rbd-nbd
Cmnd_Alias ONE_MAPPER = /bin/lsblk, /sbin/losetup, /bin/mount, /bin/umount, /sbin/kpartx, /usr/bin/qemu-nbd, /bin/mkdir, /usr/bin/catfstab, /sbin/blkid, /sbin/e2fsck, /sbin/resize2fs, /usr/sbin/xfs_growfs, /usr/bin/rbd-nbd, /usr/sbin/xfs_admin, /sbin/tune2fs
oneadmin ALL=(ALL:ALL) NOPASSWD: ONE_MAPPER

0 comments on commit 504084e

Please sign in to comment.