Normally permissions of folders like /bin
& /usr/bin
... are -rwxr-xr-x (755)
- executable and readable by anyone. So my idea here is to change permissions to -rwxr-x--- (750)
- not anymore executable and readable by others.
I want to limit executing commands inside my system (server).
(I was thinking about scenario where disabled functions of PHP are somehow bypassed and the door for executing commands are now open for malicouse user or attacker (on shared hosting), how can i stop him from executing system commands? (Offcourse premissions on other folders are set to limit his activity!))
Any ideas?