If I forget my password to my Raspberry Pi, I can gain access again by using single user mode (here is an alternative link). The upside is that if I don't know my password, I can gain access. The downside is that if anyone doesn't know my password they can gain access.
Is it possible to prevent unauthorized access via single user mode?
As far as I have researched, the answer is no. I write to ask this question in the hope that either:
- You can show me that I am wrong and that it is possible to disable single user mode; or
- I can achieve my end goal (security of my user data) via some other means, even though any nefarious actors that gain physical access to my Raspberry Pi will be able to gain sudo access.