What does a '!' indicate in the /etc/shadow file?

The account is locked

In the /etc/shadow file, the presence of a '!' (exclamation mark) at the beginning of the password field indicates that the account is locked. When an account is locked, the user is prevented from logging in, as the system treats the '!' as a marker that disables authentication with the password stored in that field. This is a common security measure to prevent unauthorized access when an account is temporarily inaccessible or needs to be restricted for some reason, such as a security concern or administrative action.

The use of '!' specifically modifies how the password is processed by the system. If a user attempts to log in when their account is locked, the system will not allow authentication or access as it recognizes there is no valid password to check against. This locking mechanism provides administrators a way to manage user access without deleting the account, which allows for a potentially easier re-enabling process in the future.

The password is expired

The user is disabled

The account is active

Want more questions?

All options are one-time payments.

$25.99

30 day pass for new members

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$59.99$171.99 usd

6 month DELUXE pass (most popular)

Full access FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • $171.99 usd value for $59.99! You save $106!
  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 6 months of full access
  • Ultimate digital PDF study guide included
  • Priority support
$15.99 $24.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy