I have a linux server RHEL 8. This server has a linux user called 'john'. This user doesn't have permissions to apply sudo as root.
I wish to give to john user permissions to execute chmod and chown commands for /opt/tomcat directory and all its content. Not for other directories. John user shouldn't execute chown command for files from wildfly directory, for example.
How can I achive that?