I'm trying to set up the sudoers file to allow users to chown files only under a certain directory
for example
%hmis ALL=/bin/chown eng:hmis /usr/lib/bogimac/bsc/*
is not good because hackers can do the following:
sudo chown eng:hmis /usr/lib/bogimac/bsc/xctrl.py /etc/important_file
Does anyone know how to prevent this?
Thanks