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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityI'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?
The command is
sudo chown roey:roey .Xauthority
1st roey
is the user, 2nd is the group roey
sudo
if it's not yours already and btw the second roey
is superfluous as just adding the colon after the first one changes the group as well
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.$USER:`id -gn`
(note the colon character in the middle)? Also, that would be equivalent to just $USER:
since chown
uses the primary group of the specified user if you omit the group name.
May 19, 2017 at 20:15
:
and .
will work fine, didn't know about omitting group like $USER:
, good point +1 :-)
info coreutils
and the section which is about chown
. I'll change it to :
in case of username contains dot.