Sunday, November 3, 2013

Two ways to change a user's password

As a Linux administrator, I can change any user's password, assuming I know the right magic incantation. Here are two: one traditional and another based on the usermod command:

  1. Traditional way:
    # passwd [USERNAME]
  2. Using the usermod command:
    # usermod -p $(openssl passwd) [USERNAME]

No comments:

Post a Comment