I like to edit files in my /Library/WebServer/Documents
without having to run sudo all the time.
So I simply added my username abbood
to the wheel
group using this command:
sudo dseditgroup -o edit -a abbood -t user wheel
i verified that abbood
is a member of wheel
like so:
$ members wheel
abbood
root
If I run ls -l
on my files in that directory.. the user is root and the group is wheel.
However as abbood
I'm still required to sudo everytime I want to edit a file.. how come? how do I avoid that?
sudo vi index.html
, it won't allow me if I just dovi index.html