Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bilal@bilal-dell:~/nova$ sudo cat /etc/sudoers
- [sudo] password for bilal:
- #
- # This file MUST be edited with the 'visudo' command as root.
- #
- # Please consider adding local content in /etc/sudoers.d/ instead of
- # directly modifying this file.
- #
- # See the man page for details on how to write a sudoers file.
- #
- Defaults env_reset
- # Host alias specification
- # User alias specification
- # Cmnd alias specification
- # User privilege specification
- root ALL=(ALL:ALL) ALL
- # Members of the admin group may gain root privileges
- %admin ALL=(ALL) ALL
- # Allow members of group sudo to execute any command
- %sudo ALL=(ALL:ALL) ALL
- #includedir /etc/sudoers.d
- %bumblebee ALL=(ALL:ALL) NOPASSWD: /etc/init.d/bumblebee
- bilal@bilal-dell:~/nova$ sudo cat /etc/sudoers.d/
- nova_sudoers README
- bilal@bilal-dell:~/nova$ sudo cat /etc/sudoers.d/nova_sudoers
- Cmnd_Alias NOVACMDS = /bin/chmod /var/lib/nova/tmp/*/root/.ssh, \
- /bin/chown /var/lib/nova/tmp/*/root/.ssh, \
- /bin/chown, \
- /bin/chmod, \
- /bin/dd, \
- /sbin/ifconfig, \
- /sbin/ip, \
- /sbin/route, \
- /sbin/iptables, \
- /sbin/iptables-save, \
- /sbin/iptables-restore, \
- /sbin/ip6tables-save, \
- /sbin/ip6tables-restore, \
- /sbin/kpartx, \
- /sbin/losetup, \
- /sbin/lvcreate, \
- /sbin/lvdisplay, \
- /sbin/lvremove, \
- /bin/mkdir, \
- /bin/mount, \
- /sbin/pvcreate, \
- /usr/bin/tee, \
- /sbin/tune2fs, \
- /bin/umount, \
- /sbin/vgcreate, \
- /usr/bin/virsh, \
- /usr/bin/qemu-nbd, \
- /usr/sbin/brctl, \
- /usr/sbin/vblade-persist, \
- /sbin/pvcreate, \
- /sbin/aoe-discover, \
- /sbin/vgcreate, \
- /bin/aoe-stat, \
- /bin/kill, \
- /sbin/vconfig, \
- /usr/sbin/ietadm, \
- /sbin/vgs, \
- /sbin/iscsiadm, \
- /usr/bin/socat, \
- /usr/sbin/dnsmasq
- nova ALL = (root) NOPASSWD: SETENV: NOVACMDS
- bilal@bilal-dell:~/nova$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement