A
A
Alexey2015-11-21 05:06:37
Apache HTTP Server
Alexey, 2015-11-21 05:06:37

How to configure CMOD correctly?

Hello everyone, I just read this article: ktonanovenkogo.ru/vokrug-da-okolo/optimalnye-prava... I
actually understood everything, but I can’t figure this out...
The site has a directory in which users upload pictures, files, avatars, etc.
Judging by the article above, if I put 777 on this directory, then users will be able to delete absolutely any files and view the directory, i.e. the user will be able to view the entire list of files and delete them in one fell swoop somehow? Or upload your own file (script) there somehow? Can he perform all these actions only through my script? And if I do not create a function in my engine to delete all files, can it somehow do it in another way?
And yet, what is the difference between executing a file and reading it? After all, if we set CMOD 644 to index.php, then the user, in theory, cannot run it, but the file is launched. And this is not called launching, but reading, then what is launching?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question