+1 vote
in Linux by
Where is password file located in Linux and how can you improve the security of password file?

1 Answer

0 votes
by

This is an important question that is generally asked by the interviewers. User information along with the passwords in Linux is stored in/etc/passwd that is a compatible format. But this file is used to get the user information by several tools. Here, security is at risk. So, we have to make it secured.

To improve the security of the password file, instead of using a compatible format we can use shadow password format. So, in shadow password format, the password will be stored as single “x” character which is not the same file (/etc/passwd).

This information is stored in another file instead with a file name /etc/shadow. So, to enhance the security, the file is made word readable and also, this file is readable only by the root user. Thus security risks are overcome to a great extent by using the shadow password format.

Related questions

0 votes
asked Nov 11, 2020 in Linux by sharadyadav1986
0 votes
asked Nov 11, 2020 in Linux by sharadyadav1986
...