You are not logged in.

#1 2009-02-28 03:49:55

Davitosan
Member
Registered: 2009-02-27
Posts: 9

Trouble logging in to KDE

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

#2 2009-02-28 04:20:42

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Trouble logging in to KDE

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

#3 2009-02-28 04:39:28

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,545

Re: Trouble logging in to KDE

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

Board footer

Powered by FluxBB