Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm not getting any password errors when i log in but after a second I will go back to the main log in screen. i tried this code using the CTRL+ALT+F1 console:

sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'

and I'm on root when I run this code. this gave me the ability to log in to normal graphical session for root, so therefore lightdm doesn't have the problem. i found some posts telling about installing gdm, but in here it's not applicable. I went on to check my /home/username/.xsession-errors, and saw this errors:

/usr/sbin/lightdm-session: 1: /etc/profile: id: Permission denied
/usr/sbin/lightdm-session: 12: [: Illegal number: 
/usr/sbin/lightdm-session: 36: /usr/sbin/lightdm-session: xrdb: Permission denied
/usr/sbin/lightdm-session: 42: /usr/sbin/lightdm-session: xrdb: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 90: /usr/sbin/lightdm-session: expr: Permission denied
/usr/sbin/lightdm-session: 98: exec: gnome-session: Permission denied

so that's why i'm being rejected after logging in because I don't have privilege. went back to root session and changed /usr/sbin/lightdm-session permission so everyone can read & write. but same issue. how's this? And then I tried to log in my username to the CTRL+ALT+F1 console, had no password errors, but it gave me an error:

-bash : groups: command not found

but it's available when i log in to root. i do some sudo commands and another error showed:

-bash: /usr/bin/python : Permission denied

so in other words, my normal user doesn't have the admin powers (my own term). How can I fix this? I don't want to be on Root forever and neither do I want to reinstall ubuntu again.

P.S. I think I accidentally removed my admin powers. before this incident, I tried to change permissions & user access of a folder with chown & chmod command. Apologize me for my English, it's not my first language.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.