Run [hosted-engine] as another user
Hello,
Question Background:
For security reasons, I would like to stop and start OLVM using the [hosted-engine] command as a user other than [root].However, execution is refused for users other than [root].
[command execute]
+++++++++++++
hosted-engine --set-maintenance --mode=global
hosted-engine --vm-status
hosted-engine --vm-shutdown
+++++++++++++
Questions:
Is there a way to grant specific permissions to achieve this?
Or do I have no choice but to take the following measures on the Linux side?
Grant root switch privileges to hosted-engine using the following visudo command on the relevant KVM host.
I was able to run hosted-engine from sudo.
++++++++++++++++++
sudo visudo
⇒<username> ALL=(ALL) NOPASSWD:/usr/sbin/hosted-engine