# copy this file to /etc/sudoers.d/omnidex,
# chown and chgrp to root, and chmod to 0440
# make sure /etc/sudoers has '#includedir /etc/sudoers.d'

# The users allowed to run a command as another user
User_Alias     OMNIDEX_USER  = omnidex

# The users a command can be run as
Runas_Alias    OMNIDEX_RUNAS = user1, user2

# The commands allowed to run
# This should not be changed unless the install location is different
Cmnd_Alias     OMNIDEX_CMND  = /opt/omnidex/bin/

# Require target user password, not current user password
# Allow environment to be preserved
Defaults:OMNIDEX_USER  targetpw, setenv

# Allow any OMNIDEX_USER to run any OMNIDEX_CMND as any OMNIDEX_RUNAS user,
# as long as they know that user's password
OMNIDEX_USER   ALL = (OMNIDEX_RUNAS) OMNIDEX_CMND
