N
N
Nikolay2020-04-06 15:35:44
Apache HTTP Server
Nikolay, 2020-04-06 15:35:44

How to properly set permissions on Apache (Passenger) + Ruby on Rails (Redmine) hosting?

Good day everyone!

I set up REDMINE on VPS according to the manual - https://www.dmosk.ru/miniinstruktions.php?mini=red...
Everything works, but to change files via ssh (winscp) you have to put chmod 0775 under root (sudo from the console)
All folders and files with which I tried to work initially have 0755, owner: www-data, group: www-data
I go via ssh (console and winscp) as a separately created user (sudoer + membership in the www-data group).

I have never dealt with setting up permissions on hosting, I see Ruby and pasenger for the first time%)

Actually, the solution in the forehead is recursively chmod 0775 for the entire application, but something vague doubts torment me whether they will break it after that or the application will break ...

Tell me plizz how to be?

Thanks in advance for advice!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vayladion Gognazdiak, 2020-04-12
@etspring

Add www-data to the root group ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question