Answer the question
In order to leave comments, you need to log in
How to properly set permissions for a site in Linux?
What is the best way to restrict access to the file system? A site that has scripts (Apache must read them), configs (Apache must read and write them), database files (subd must read and write them) and at the same time the OS user must have rights so that he can replace both script files and config .
How correct is the next option (if not correct, then which option would be correct?
/home/ (стандартные права)
mysite/ (владелец "администратор_пк", права 700)
db/ (владелец "администратор_субд", группа "пользователи_субд", права 770)
conf/ (владелец "апач", группа "апач", права 770)
site/ (владелец "апач", группа "апач", права 470)
пользователь "администратор_пк" входит в группы: "пользователи_субд", "апач"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question