cannot create /dev/null: Permission denied

Asked by mau

Dear Sirs

After upgrade from feisty to gutsy I can't login from the graphical interface. After accepting my password, the display flickers and returns to the login screen. There are no error messages. If I go to console login and try startx this fails and shows two relevant messages: "/etc/X11/Xsession: 92: cannot create /dev/null: Permission denied" and "/usr/bin/startx: line 169: /dev/null: Permesso negato". If I start in recovery mode I login with my username and my password but without my configuration. Note: no problem on Feisty.
Please help me.
Thanks in advance for your attention.
Best regards.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

I have same i filled a https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/122062

Open a Terminal open the /etc/rc.local file

sudo nano /etc/rc.local

and put before the exit 0 instruction

chmod 0666 /dev/null <---- insert this

exit 0 <--- don't touch this row

Save and reboot

HTH

Revision history for this message
mau (mauro-ste) said :
#2

Sorry if I answer with another question.
Yes, your suggestion solve the problem and now I can login with my username and password.
Unfortunately sudo don't works because if I try sudo <command> and I answer with my password, the system refuse the password.
Could you help me?
Thanks a lot in advance.

Mauro

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#3

I suggest to close this question and open a new question about "sudo password error"
Thank you.

Revision history for this message
mau (mauro-ste) said :
#4

Thanks elart.it, that solved my question.