A password is a server's first lock. Check what guards that lock on a fresh system.
A colleague has created the service account webadmin and asks you to change its password. He picks a short word — password.
Change webadmin's password
The webadmin service account currently has the password ServiceAcct-7. Change it to the dictionary word password the way the account owner would.
First, predict
webadmin changes their own password to the dictionary word password. Will the system accept it?
Now start the exercise, run the command and compare your prediction with the output.
The owner changed the password to password, and the system accepted it. Why did that happen?
-
The owner webadmin changed it themselves (
sudo -u webadmin passwd), not root. It was the stack's loose check that accepted it. -
There is no such rule: the stack would take a random password too. It just checks almost nothing.
The default stack checks the password loosely, and the eight-letter word went through.