Given a linux username and a password how can I test if it is a valid account?

前端 未结 3 834
隐瞒了意图╮
隐瞒了意图╮ 2020-12-24 06:38

So my question is straight forward given a linux username and a password how can I test if it is a valid account?

3条回答
  •  独厮守ぢ
    2020-12-24 07:08

    If you are concerned about security (which you should be), the accepted answer represents a security risk by leaving the plaintext password in the ~/.bash_history file. With this in mind, it would be better to try logging in, or perhaps removing this entry from the ~/.bash_history.

提交回复
热议问题