Skip to main content
Commonmark migration
Source Link

Based on /etc/shadow(5) documentation on the second (password) field:

###encrypted password

encrypted password

If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).

My question is whether there is a linux command to disable the user password,i.e. set a "*" or a "!" on password field.

Based on /etc/shadow(5) documentation on the second (password) field:

###encrypted password

If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).

My question is whether there is a linux command to disable the user password,i.e. set a "*" or a "!" on password field.

Based on /etc/shadow(5) documentation on the second (password) field:

encrypted password

If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).

My question is whether there is a linux command to disable the user password,i.e. set a "*" or a "!" on password field.

Became Hot Network Question
Tweeted twitter.com/StackUnix/status/1209171852662394882

Based on /etc/shadow(5) documentation/etc/shadow(5) documentation on the second (password) field:

###encrypted password

If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).

My question is whether there is a linux command to disable the user password,i.e. set a "*" or a "!" on password field.

Based on /etc/shadow(5) documentation on the second (password) field:

If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).

My question is whether there is a linux command to disable the user password,i.e. set a "*" or a "!" on password field.

Based on /etc/shadow(5) documentation on the second (password) field:

###encrypted password

If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).

My question is whether there is a linux command to disable the user password,i.e. set a "*" or a "!" on password field.

Source Link
trikelef
  • 470
  • 1
  • 5
  • 14

Disable password on linux user with command

Based on /etc/shadow(5) documentation on the second (password) field:

If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).

My question is whether there is a linux command to disable the user password,i.e. set a "*" or a "!" on password field.