Hello, do you know of any way that the passwd command, if the passwords do not match, asks you for them again?
Because I am with a script that creates a user and then asks him with the passwd command to enter a password but if it is correct it is assigned and created fine, but if it is incorrect it leaves him without a password and also creates the user and I would like that he did not create it
Because I am with a script that creates a user and then asks him with the passwd command to enter a password but if it is correct it is assigned and created fine, but if it is incorrect it leaves him without a password and also creates the user and I would like that he did not create it