Would like to stop service authentication

Hello All.

I'm trying start services as an Admin user on CentOS 7. I'm able to start the service as the user but it prompts me for a password. How do I get the user to start a service without being prompted? For example; If I attempt to start the sendmail service as my user2, I receive the following:

[user2@sserver2 ~]$ systemctl start sendmail
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or units.
Multiple identities can be used for authentication:
 1.  user1
 2.  user2
Choose identity to authenticate as (1-2):

How do I stop this?

More that likely, your issue is that your "admin user" is not a member of the wheel group. Moreover you should be using the sudo command as in:

$ sudo systemctl start sendmail
2 Likes

Thanks for replying. I'm trying to start a special service that calls sendmail service. The trouble is, if I try to start the process using sudo it gives an error stating that "user is root. please use myuser". So I can't use sudo.

I couldn't find an answer so I changed OS's to Ubuntu and this wasn't an issue.