I am using openSuse 12.3.
I have created a new user using:
linux-amvn:~ # useradd -m -G users,dev -s /bin/bash -p pass123 harbir-PC
The user harbir-PC
is not able to login, when I try to log using ssh
.
I went ahead and looked into the /etc/passwd
file and I see the following:
harbir:x:1000:100:harbir:/home/harbir:/bin/bash
kdm:x:489:487:KDM Display Manager daemon:/var/lib/kdm:/bin/false
harbir-PC:x:1001:100::/home/harbir-PC:/bin/bash
There is a difference between the user harbir
and harbir-PC
.
I have no problem with the user harbir
(who I have created during installation), but I need to login using the user harbir-PC
.
I also checked the /etc/shadow
, and passwords are encrypted.
useradd
? It says-p The encrypted password, as returned by crypt(3).
useradd
if you look for optionp
, it has the information as specified above and it has this information as well.The default is to disable the account.