A little bit more interesting discoveries while digging into the passwd code file.
The ‘s’ flag in file permission
First, the file permission of passwd executable is -rwsr-xr-x
. There’s an ‘s’ flag which don’t usually appear in common Unix files. The usage of the ‘s’ field is explained here: