Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

After executing the following script (I removed all occurrences of tmp, mind you. Or at least I thought I did) and rebooting the system, I'm no longer able to log in through the display manager.

https://github.com/chrisprobst/ubuntu-raring-haskell/blob/c5b6fcd2f56e010fe30c2bd08624e83bad8813bf/install.sh

At the beginning, I couldn't even use startx without issuing sudo. This was alleviated by "chmod o+t,ugo+rw /tmp" (which leads me to believe I might have run the wrong (the unmodified) version of the script.

Anyways. After issuing the aforementioned chmod command and rebooting the system, I tried logging in again. While logging in from the terminal functions properly now, LightDM will log in, flash the screen twice and return to the login screen.

Is there anything else I could try?

I ran the script in it's entirety (minus installing the non dev libglw1-mesa)

share|improve this question

1 Answer 1

If you are seeing /tmp in the output of ls -l / command, you can give it proper permission by typing

sudo chmod 1777 /tmp .

share|improve this answer
    
Well. As I said. /tmp already has proper permissions, so it has to be something else. –  user237251 Mar 2 at 10:16
    
You might be correct. There are several .Xauthority files there (SSH cookies, right?) but the main one says "-rw------- root:root" Is it save to set this to "-rw-rw-r--" and my regular user as owner? –  user237251 Mar 2 at 11:34
    
I have deleted one of my comment,Use sudo chown username:username ~/.Xauthority and try to login. Also the correct permission of ~/.Xauthority is rw-------. So correct it if needed. –  Guru Mar 2 at 11:54
    
Thanks. Everything is back to normal now and I even got the haskell-platform installed (ended up doing it manually, since the script was using sources that wouldn't compile). I'm told that this particular ownership issue might have arisen from the fact that I misused sudo to launch several graphical applications. –  user237251 Mar 2 at 12:19

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.