2
I'm editing theme files in a wordpress site owned by www-data:www-data as my main user 'oma'. Every time I create a file or edit one, I have to use the sudo command and it gets created as root:root. Actually, I pretty much have to use it everywhere. Big pain, as I invariably forget to type this and then my changes aren't saved.
What I'd like is for it to be created as www-data:www-data. I'm even confused as to why I'm being prompted for this, I thought when I added myself to the 'admin' and 'wheel' group in /etc/sudoers.d/oma I would have more privileges.
UNIX permissions just plain boggle my mind. Any help would be much appreciated.
BTW,
su
is installed on most systems. You really just need to give root a password in order to usesu
to switch to root. That is done withsudo passwd
. – krowe – 2014-10-07T01:39:53.630