After running once startx command in terminal i can not login as user anymore to my normal desktop. It still works as root. I am using the Mate desktop environment. Can any one help?

cd ~
sudo chown username:groupname .Xauthority

You must have restarted X server as a root user and thus the file .Xauthority which was owned by the user, now got owned by root.

Try giving back the ownership as suggested.

  • how can i find out the groupname? groups amir gives me : amir : amir cdrom floppy audio dip video plugdev netdev lpadmin scanner bluetooth – amirteymuri Mar 21 '17 at 16:18
  • 1
    use grep <username> /etc/groups to get your username – Ashish K Mar 21 '17 at 18:54

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.