Lets say in my Debian PC have 2 users called cat and dog.
I want to use
sudo setup to give dog's privileges to cat. So cat can do what dogs do.
I'm new to sudo stuff but I tried below config. It gives below error when cat trying to access dog's file.
cat ALL=(dog) ALL
Sorry, user cat is not allowed to execute '/usr/bin/vim /home/dog/test.txt' as root on debian.
test.txt file is own by dog and permissions are
Can someone help...