Why sudo and su are SUID root, and what actually happens when you switch users
Most Linux users have typed sudo ten thousand times. Almost none can explain what the kernel is doing when those ten characters are hit. This article walks through the whole chain — setuid, the dynamic linker scrubbing your env, PAM authentication, the difference between su and su -, why sudo keeps a 5-minute grace, and... » read more