You are not logged in.
Hi. I am not very familiar with permissions for files or folders. I have a data folder in my home directory that i want to access through both a simple apache http server and through the nextcloud interface.
What permissions should i use for this folder so that it will be as secure as possible while still accessible through both? Should it be owned by http or by me?
Thanks
It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead
Offline
You'll have to elaborate on "secure" and "accessible", but I assume you want to be able to write and http still needs to be able to read those files, so own them yourself, give them a group that you share with the http user (in doubt create one) and turn them 640.
Offline
You'll have to elaborate on "secure" and "accessible", but I assume you want to be able to write and http still needs to be able to read those files, so own them yourself, give them a group that you share with the http user (in doubt create one) and turn them 640.
Can you elaborate please? How would I give the files a group? By giving ownership of the directory they are in to a user in that group? Thanks.
It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead
Offline
https://wiki.archlinux.org/index.php/Us … management
Moving to NC...
Offline
Hi. I am not very familiar with permissions for files or folders.
Then get familiar. It is ok to not know. It is not okay to preserve your ignorance while expecting others to do your thinking for you.
Read `man chown` and `man chmod`.
Feel free to follow up with specific questions on how they work, or with a draft of the commands you plan to use if you want another set of eyes on them before you make changes. But if you haven't read that documentation, there is nothing we could do here but recite it for you which would be 1) inefficient, 2) error prone, and 3) completely ridiculous.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline