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