How to prevent end users from logging in directly with service accounts to RHEL VMs?

Latest response

Have users that continue to log in directly as service accounts to RHEL VMs, makes it hard to track who is doing what.

Is there a way to prevent end users from logging in directly as a service account. Force them to login first and then they can escalate to the service account?

Responses