I have a user with limited access rights
Right now,I am issuing comands like this:
sudo sh -c "diff /tmp/file1 /tmp/file2"
This makes my user to fire commands with higher privilege. Is there any workaround by which I can do the same by using something like:
sudo "diff /tmp/file1 /tmp/file2"
thanks in advance
Right now,I am issuing comands like this:
sudo sh -c "diff /tmp/file1 /tmp/file2"
This makes my user to fire commands with higher privilege. Is there any workaround by which I can do the same by using something like:
sudo "diff /tmp/file1 /tmp/file2"
thanks in advance