Answer the question
In order to leave comments, you need to log in
How to prevent linux users of a hosting server from exposing 777 permissions on files and directories?
Hello!
Actually, the question is:
Is there any method to prevent users of a hosting server (based on linux) from setting permissions 777 (assign a maximum of 755, for example) to files and directories?
I manage a hosting server, it has already happened twice that users uploaded some left scripts and set permissions to 777 because "something is not working", then spam, then the IP address in the blacklist.
I want to protect the server, it has this kind of vulnerabilities.
Answer the question
In order to leave comments, you need to log in
What was the point of such hosting if I can’t upload a file to php there or install a SAP script? (all this most often requires rights 777)
as an option, try to mount the file system with noexec , or you can make the default umask weaker for everyone (something like umask 000) and at the same time disable chmod for execution by all users and leave it only for the administrator
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question