This article suggests to restrict compilers to root, but does not say how, and I couldn't find anything useful by searching the Web.
ii g++ 4:5.3.1-1ubuntu1 i386 GNU C++ compiler
ii g++-5 5.4.0-6ubuntu1~16.04.1 i386 GNU C++ compiler
ii gcc 4:5.3.1-1ubuntu1 i386 GNU C compiler
ii gcc-4.7 4.7.4-3ubuntu12 i386 GNU C compiler
ii gcc-4.7-base:i386 4.7.4-3ubuntu12 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-4.8 4.8.5-4ubuntu2 i386 GNU C compiler
ii gcc-4.8-base:i386 4.8.5-4ubuntu2 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-5 5.4.0-6ubuntu1~16.04.1 i386 GNU C compiler
ii gcc-5-base:i386 5.4.0-6ubuntu1~16.04.1 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-6-base:i386 6.0.1-0ubuntu1 i386 GCC, the GNU Compiler Collection (base package)
- Which of these compilers can I remove (on a Ubuntu Web server)?
- Should I remove interpreters like Python and Ruby too?
- Which Bash commands can I use to harden required compilers?