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?
Best Answer
Answering based on system defaults (because of lack of the information in the question):
Members of group
wheel
do not have write permissions to the/Library/WebServer/Documents
directory nor the files inside.Hence adding any account to the group
wheel
will not allow this account to write files in/to the above directory.