On Linux, I am logged in as another user, I have added myself to wheel.
wheel:x:10:root,allan
I have uncommented the lines of /etc/sudoers
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
However, when I create a file e.g.
touch test
the owner and group of file 'test' are:
-rw-r--r-- 1 root root 0 Jul 28 09:05 test
It seems like I have to run sudo in front of every command, otherwise I get permission denied errors.
How do I go about resolving this?
touch test? – ott-- Jul 28 '12 at 17:40touch test? – Daniel Beck♦ Jul 28 '12 at 18:26