2013-11-03

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