I can't log in to KDE, as other users to the GUI on my Debian systems only the user created at install.

I can log on in the command line:

su - user

into the users login but only in the shell.

I have created a login shell

usermod -s /bin/bash user

and deleted users and created new ones

useradd -m user

I've tried to change the password:

sudo passwd user

cat /etc/passwd   # gives



PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION="9 (stretch)"

When I try to login I get login failed like when you have a wrong password but I'm sure I have the right passwords.

  • Is the Ó character part of the username? What command exactly did you use when you created the user and did you use any non-ascii characters in the username? (please include the actual username). – Kusalananda Sep 4 '18 at 10:35
  • @Kusalananda yes it's part username=Óli – somethingSomething Sep 4 '18 at 10:38
  • @Kusalananda If a question deserves a answer, I would also think it deserves atleast one up vote, this is so stupid – somethingSomething Sep 4 '18 at 18:32
  • 1
    An oversight on my part. Corrected. – Kusalananda Sep 4 '18 at 18:59

Usernames on Debian systems must start with an ASCII letter or underscore, and then only contain letters, digits, dashes or underscores. The username may end with an optional $. The maximum length is 32 characters.

Instead of Óli, I would suggest oli and then to set the user's "real name" to Óli.

See also: What is the regex to validate Linux users?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.