I have an active root account, but I don't know my password.
To be able to change my password or even to create another users (with the tool
passwd) I need to know my password. So that creates a problem. But since I'm root - am I allowed to replace arbitrary binaries in
/bin/ directory? Just modify
passwd source code, compile it, replace the original one with the new one. Is it that simple? Any caveats?
My test systems are:
FreeBSD 11.0 +