Comment 6 for bug 531027

Revision history for this message
avius (avi142) wrote : Re: GLIB WARNING ** GLib - getpwuid_r(): failed due to unknown user id (0)

I recently upgraded to lucid alpha and I have an infinite login loop occurring due to this issue. I get the message:
GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
printed onto tty6, and my .xsession-errors log file has a line saying:
 .: 34: Can't open /home/avius/.profile

I tracked down where this was coming from, and it is located in the script /etc/gdm/Xsession
At line 34, it does a relatively simple thing - it tries to execute the /home/avius/.profile file.
I did some experimenting and apparently the issue happens because of a permissions problem. For instance, as a method of debugging, I inserted a line of code right before the line I just mentioned, with the command ls -al $HOME
As expected, it returns an error stating that permissions where denied to enter my home directory. I used chroot to temporarily change permissions on my home directory and the .profile file so that each could be completely read, modified, executed by everyone, but the infinite loop persists.

Any ideas?