You are not logged in.

#1 2012-07-22 08:00:14

Hspasta
Member
Registered: 2011-12-24
Posts: 189
Website

[Solved]Gdm Cannot Load .xinitrc

I recently installed gnome and gdm on an existing system and there appears to be permission problems. Before I ran awesome + slim with systemd.

I installed the gnome group and gdm, then replaced the slim.service with gdm.service.

I rebooted gdm gives me some error page and I get this in my .xsession-errors:

└╼ $ cat .xsession-errors 
/etc/gdm/Xsession: Beginning session setup...
localuser:hsp being added to access control list
/etc/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent -- /home/hsp/.xinitrc
/home/hsp/.xinitrc: Permission denied

What is causing this permission problem? .xinitrc permissions are 644.

Edit: Just editing because this post doesn't deserve a bump.

Don't really know what was going on with my system. I was hopping back and forth KDE and Gnome and I'm pretty sure I broken something in between. I just reinstalled arch and everything works fine.

Last edited by Hspasta (2012-08-02 04:35:04)

Offline

#2 2012-07-22 08:23:31

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved]Gdm Cannot Load .xinitrc

$ ls -l ~/.xinitrc
-rw-r--r-- 1 hsp users 51 Jul 16 11:06 /home/hsp/.xinitrc

If it says "root", you need to chown it.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-07-22 11:35:23

SubSub
Member
From: Benton Falls
Registered: 2012-07-22
Posts: 6

Re: [Solved]Gdm Cannot Load .xinitrc

You wrote that .xinitrc has 644 permission.  I believe that leaves you with only read and write permissions.  Therefore, you should change permissions for .xinitrc to 755 which will give you, R, W and execute permission.  It has to be executable as a regular user in order to log you in.

 chmod 755 ~/.xinitrc 

Last edited by SubSub (2012-07-22 11:46:44)


Mu Empire.

Offline

#4 2012-07-22 11:53:49

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved]Gdm Cannot Load .xinitrc

Nah... Mine doesn't have the executable bit and Arch starts fine here (using "startx" or "xinit") with these permissions:

$ ls -l ~/.xinitrc
-rw-r--r-- 1 dspider users 51 Jul 16 11:06 /home/dspider/.xinitrc

And here's what it looks like with the executable bit (i.e. "chmod 755 ~/.xinitrc" or "chmod +x ~/.xinitrc", same thing):

$ ls -l ~/.xinitrc
-rwxr-xr-x 1 dspider users 51 Jul 16 11:06 /home/dspider/.xinitrc

I think he created or moved/copied that file using sudo...

$ sudo nano ~/.xinitrc_test
$ ls -l ~/.xinitrc_test 
-rw-r--r-- 1 root root 6 Jul 22 14:50 /home/dspider/.xinitrc_test

Like I said, this shouldn't say "root".

Last edited by DSpider (2012-07-22 12:05:35)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#5 2012-07-22 12:00:23

SubSub
Member
From: Benton Falls
Registered: 2012-07-22
Posts: 6

Re: [Solved]Gdm Cannot Load .xinitrc

Ah. Cool. Didn't see his "ls -l ~/.xinitrc" in the initial post, so I wasn't sure.


Mu Empire.

Offline

Board footer

Powered by FluxBB