How does Linux authentication system work?

AM Amitmakhija asked on 28 May 2020, 02:28
1 answers / 433 views / 1 votes
There are essentially two files
1> /etc/passwd - This is where the user information is stored.
2> /etc/shadow - This is where the user password hash is stored.

The newer Linux kernels also provide something known as PAM authentication. It is a module written to allow services and applications authenticate users. More on PAM at

If you are wanting to use authentication for an application / service that you are developing, I'd suggest using PAM.

If the question is only for information, then you may want to look at

Related Questions