3 ms·
Another more Linuxy-Thing to try: build a pam (authentication/authorization/etc) module to embed your own secret or come up with a fun/unique way to enter your
by mqus 6y ago
Another more Linuxy-Thing to try: build a pam (authentication/authorization/etc) module to embed your own secret or come up with a fun/unique way to enter your password (e.g. you can not login unless you plugged your headphones in, etc :) )
This makes you very aware of the way login works in linux and teaches you how to compile your library as a shared object conforming to an interface. Of course, you should be aware that you just baked your own security mechanism, so use it that way and better avoid using it for anything sensitive :)
- LukeShu 6y agoPlaying with PAM is definitely worth-while (and don't forget to have a root shell open the whole time so you can fix it when you break things!) It really drives home exactly what the kernel's view of users is, and what is just conventions in userspace. I think PAM was the last piece of GNU/Linux to transform from magic to understanding for me.