V
V
Vkok2017-03-24 19:40:39
Information Security
Vkok, 2017-03-24 19:40:39

What rights should be set on the server?

Hello. What rights are more correct to set on folders/files? Website in HTML, without an engine ...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Saboteur, 2017-03-24
@boch112

644 for regular files
755 for directories and executables

P
Puma Thailand, 2017-03-27
@opium

Set it to read only, make root the owner.

E
Egor Kazantsev, 2017-03-29
@saintbyte

Three commands for perfect safety in a vacuum

chown -R root:root /
chmod -R 700  /
chattr -iR + /

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question