So, I'm not sure what are the recommended directory ownership and premissions for directories of my websites.
└── var
└── www
├── website1
│ └── public_html
└── website2
└── public_html
So the owner of var and www is already root:root.
└── [root root ] var
└── [root root ] www
├── [user1 user1 ] website1
│ └── [user1 user1 ] public_html
└── [user2 user2 ] website2
└── [user2 user2 ] public_html
It should be like above?
Or:
└── [root root ] var
└── [root root ] www
├── [root root ] website1
│ └── [user1 user1 ] public_html
└── [root root ] website2
└── [user2 user2 ] public_html
For premissions i did like this:
└── [drwxr-xr-x] var
└── [drwx--x--x] www
├── [drwxr-xr--] website1
│ └── [drwxr-xr-x] public_html
└── [drwxr-xr--] website2
└── [drwxr-xr-x] public_html
For better orientation:
var 0755
www 0711
website1 0754
public_html 0754 or 0755
Any suggestion?