I have a user who needs to modify files in /etc/haproxy and /etc/tomcat. I tried to create a sudoers
file with:
%usergroup ALL=(ALL) NOPASSWD: /etc/haproxy /etc/tomcat
But it didn't work. Any help would be greatly appreciated.
I have a user who needs to modify files in /etc/haproxy and /etc/tomcat. I tried to create a sudoers
file with:
%usergroup ALL=(ALL) NOPASSWD: /etc/haproxy /etc/tomcat
But it didn't work. Any help would be greatly appreciated.
Copyright © 2021 Jogjafile Inc.
Sudoers won't give you the type of control you need. Instead, consider using groups. Assuming that those programs run as root: