Directory permissions is not very clear

Asked by Andrei

In the documentation you wrote :

For the application to work, some directories must be writeable by the web-server. On development server, this may be done by giving write permissions to all

chmod -R a+w <directory>

But the best way to do this on production server is to set the owner of the directory to the web server's process

chown -R www-data <directory> (provided www-data is the apache process owner, on some os, it is 'apache' or 'httpd')

Here follows a list of directories to set the permissions for. Those marked with a * MUST be writeable for the system to work, others must be writeable for automatic installation of plugins, but these steps can all be done manually: .... and that's what where it is not clear. Here's my question :

Those directories mentionned with a * at the end of their name (for the purpose of the explanation) must be writable. Now what does it mean ? Is it that some of these directories attribute will be change by chown -R www-data while other will be change by chmod -R a+w ?

Thanks

André

Question information

Language:
English Edit question
Status:
Solved
For:
AuthPuppy Edit question
Assignee:
No assignee Edit question
Solved by:
gbastien
Solved:
Last query:
Last reply:
Revision history for this message
Best gbastien (gbastien02) said :
#1

They are both ways to make this directories writeable by the web server, but the chown is safer on a production server as it does not give the whole world access to those directories.

Do a 'man chown' and 'man chmod' to see what those 2 commands do exactly.

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) said :
#2

I know what chmod is. I'll read more about chown command.

But how come in the installation page of authpuppy, there is an opposite statement of what you say.

In the chown-chmod section, we talk about the use of chmod instead of chown. That's what my question is all about.

Thanks Geneviève,

André

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) said :
#3

Ok, i just checked the authpuppy installation and changes were made ......

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) said :
#4

Thanks gbastien, that solved my question.