Multiple choice technology operating systems

Two files are used to store the password information. One file contains only one character and other contains encripted format. Which file have encrypted password?

  1. /etc/passwd

  2. /etc/shadow

  3. /etc/passwd.rch

  4. /etc/shadow.rch

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The /etc/shadow file contains encrypted passwords. In modern Unix systems, password information is split: /etc/passwd contains public user information (username, UID, GID, home directory, shell) and is world-readable, while /etc/shadow contains sensitive data including encrypted passwords and is readable only by root. The 'one character' mentioned in the question likely refers to the 'x' placeholder in /etc/passwd which indicates the password is stored in /etc/shadow. The .rch extensions are not standard Unix files.