1

The interesting part is I found that I was able to login with xfce but not with either lightdm or gdm. (I am using Ubuntu 16.04)

0

Did you do something before this problem?
Maybe you run .Xauthority with sudo.
Log in using CTRL+ALT+F1 and type:

sudo chown yourusername ~/.Xauthority
  • yes, I did. And It didn't change anything – anhbeo Aug 27 '18 at 19:40
  • now you are sure that the .Xauthority file has the user permission? Can you do that command again as root? What did you do before this problem? – Scorpion Aug 27 '18 at 19:52
  • Hi, in my case, I have a huge shared networks with multiple users, then I was creating a new one for my friend. I tried with so many solutions, but none of them seemed to work for me. Later, I had to work around by reinstall the Ubuntu. – anhbeo Sep 5 '18 at 14:44
  • I think I figured out my problem, since I am using network computers. After creating and modifying users int /etc/passwd and /etc/shadow. I also need to consider /etc/group /etc/auto.master (in autofs), so I can make sure my new user can be connected into the server. – anhbeo Sep 5 '18 at 14:49
  • Good if it works answer your own question. – Scorpion Sep 5 '18 at 19:04
0

I think I figured out my problem, since I am using network computers. After creating and modifying users int /etc/passwd and /etc/shadow. I also need to consider /etc/group /etc/auto.master (in autofs), so I can make sure my new user can be connected into the server.

However, I still don't have a clear explanation why xforce can work under error of /etc/passwd and /etc/shadow

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.