Study for the TestOut Linux Pro Exam with our engaging quiz. Prepare using our flashcards and comprehensive multiple choice questions, each with hints and explanations to help you succeed. Get ready for your Linux certification today!

Practice this question and more.


What is a requirement when changing passwords for user accounts?

  1. The password must be encrypted in the shadow file

  2. The username must be included in the command

  3. All passwords must be eight characters long

  4. Passwords cannot contain numbers

The correct answer is: The password must be encrypted in the shadow file

When changing passwords for user accounts, one important requirement is that the password must be encrypted in the shadow file. In Linux systems, user passwords are often stored in a secure manner in a file called the shadow file, usually located at /etc/shadow. This file contains hashed passwords rather than the plain text versions to enhance security and protect user credentials from unauthorized access. Password encryption helps to ensure that even if someone gains access to the shadow file, they cannot easily decipher the actual passwords. The hashing process involves transforming the password into a fixed-size string of characters, which is not reversible. Consequently, when a user logs in, the entered password is hashed and then compared to the stored hash in the shadow file. This is a fundamental practice of secure password management in Linux systems. In contrast, having the username included in the command, a specific length for passwords, and restrictions on using numbers do not constitute mandatory requirements for changing passwords across all Linux distributions. The actual requirements can vary based on system settings, security policies, or the version of the Linux operating system in use.