You are not logged in.
Pages: 1
I just installed my Arch system and used pacman to install KDE. Everything works fine until i have to log in.
i created a user account called 'david' in bash, like this:
# useradd -p xxxx -m david
To my understanding, that sets the password of the user 'david' to 'xxxx', and creates the /home/david/ directory.
But when I arrive to the KDE login, it says the password is incorrect (literally, it says "login failed")
So i returned to bash and tested the user by creating another one, called 'davito', and did the following:
#su davito
then, as davito,
$su david
bash asks for the password, so I type in 'xxxx', but it also says that the password is incorrect!
I checked the /etc/shadow file and the password is stored as I intended it (as 'xxxx'), but neither KDE nor bash seem to care.
Could anyone please tell me what I'm doing wrong? Any response will be truly appreciated.
Offline
I've always done it like this (assuming bash as the shell):
useradd -m -s /bin/bash <user_name>
passwd <user_name>
Maybe you need to add a shell for your users?
Offline
What I did to get a hang of the traditional 'useradd' was to to make a small mod to the easy 'adduser' script to make it echo the line it's going to send to useradd before it does useradd, so I can see what it does - simple.
Offline
Pages: 1