10

I'm stuck in a login loop Ubuntu 17.04. When I go to tty1 and type chown username:roey .Xauthority taken from Ubuntu gets stuck in a login loop

It says that my user doesn't exist.

What is the problem? How can I log back in to Ubuntu-Gnome?

Zanna
  • 72,312
Roey
  • 738

2 Answers2

12

The command is

sudo chown roey:roey .Xauthority

1st roey is the user, 2nd is the group roey

Rinzwind
  • 309,379
9

If you don't know what username/group you shoud use, I suggest using something like this:

sudo chown $USER:`id -gn` .Xauthority
  • $USER will be expanded into your current username.
  • id -gn will returns the main group of your current user.
Ravexina
  • 57,256