We have set up LDAP authentication on our RHEL server so that each of our team members can log in with their domain accounts to the terminal. We are attempting to set up sudo access for hcienginerun and hcisitectl so we have to use sudo to the hci user to run those commands but are running into issues.
When using sudo -u hci hcisitectl or sudo -u hci hcienginerun I am getting responses that various environment variables are not set even though in my .bashrc file it calls on the /home/hci/.profile to initialize the environment. What else am I missing with trying to get sudo configured?