Created user unable to login
Tofloor
poster avatar
x10
deepin
2018-11-16 02:21
Author
Edited by x10 at 2018-11-16 11:27

Good day,

I've created an user on terminal using sudo useradd jeff  but i was not able to login, even if replacing password on termial using sudo gedit /etc/passwd, then modify the profile below.

jeff:*:1001:1001::/home/jeff:/bin/sh

I've replace * to a sample password 12345 etc.. but nothing happen, the account still disable.

I need your help on this, Thanks in advance


Reply Favorite View the author
All Replies
21wmd
deepin
2018-11-20 00:43
#1
Create users for Deepin Center
Reply View the author
deepinuser17
deepin
2018-11-20 19:31
#2
本帖最后由 deepinuser17 于 2018-11-20 11:35 编辑

You forgot setting password for the new account. Run following command at terminal and set a password:
  1. sudo passwd jeff
Copy the Code


You should NEVER directly edit /etc/password file at all. Real password is stored /etc/shadow file in hash format. The "*"  in /etc/passwd is just a place holder.
Reply View the author