This demonstrates how you can give a group Database Group Access as well as give them access to run commands for that particular group in SUDO. If you want a group to be able to run certain commands but still not be a Superuser, you can configure it as the example below.
## Storage Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount,
/bin/umount Cmnd_Alias MOUNT = /usr/local/bin/mount.sh, /sbin/mount.cifs, /bin/umount ## Allows members of the users group to shutdown this system # %users localhost=/sbin/shutdown -h now %grpadmin ALL=(ALL) NOPASSWD: ALL %grpdba ALL=(oracle) NOPASSWD: ALL %grpdba ALL=MOUNT
Category: | 0 Comments
0 comments to “SUDO Access for groups and to run commands as the group owner”