This is just my answer template for "Fun questions" section on sysadmin interview repo: https://github.com/chassing/linux-sysadmin-interview-questions#fun
A careless sysadmin executes the following command: chmod 444 /bin/chmod - what do you do to fix this?
First of all, I'd get the root privileges from that person away. As answer, I have 2 solutions:
- I'd create a dumb FS (like fat) on a loopback device and copy this file to there, since every file will have executable rights there.
- There is no problem, system is running without problems, so no need to fix.
I've lost my root password, what can I do?