Sorry, but it does not work.
The rm command can delete file (without sudo) regardless on these permissions. Note that in /etc/sudoers file is line
usr ALL=(root) NOPASSWD: /home/usr/prog
I need any solution for the following requirements:
1. The user root can modify program /home/usr/prog
2...
The user named usr needs to execute program /home/usr/prog as root. But, nobody but root must be able to delete/modify program /home/usr/prog. How to do it?
My attemption was
# chown root /home/usr/prog
# chmod 0 /home/usr/prog
# chmod u+x /home/usr/prog
At end of the /etc/sudoers file I...