Oracle Linux Virtualization Manager (OLVM) (MOSC)

MOSC Banner

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center