This is somewhat confusing for me so i hope someone can quickly explain the run down once and forall.
I have a User, "John
", and group created named "John
". I make john a "Primary group members" of group John, and user www-data
a member also of group John.
I create /home/john and chown john:john
.
files and directories are chmod 755
, so it makes sense then that www-data
cannot write, which i want it to.
Do i need to chmod everything to 775, or is there a better way to go about this securely?