Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#24503 - [xorg-xdm] Fails if .xinitrc is not executable

Attached to Project: Arch Linux
Opened by David J. Haines (dhaines) - Monday, 30 May 2011, 15:25 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 12 May 2015, 15:54 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No


xorg-xinit installs /etc/skel/.xinitrc and /etc/skel/.xsession, both of which are bourne shell scripts. Both should be set to executable not just because they're scripts, but also because at least some programs (including the "official" display manager: xdm) won't work unless they are (after they've been copied to a new user's $HOME, that is).

I can't see any security issues with them being so set, especially if they're 0755, and your newly-added user will appreciate setting a wm in .xinitrc and having it just work.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Tuesday, 12 May 2015, 15:54 GMT
Reason for closing:  Fixed
Additional comments about closing:  Files removed from repo.
Comment by David J. Haines (dhaines) - Tuesday, 31 May 2011, 03:11 GMT
Sorry, I meant to say "especially if they're 0700 or 0744."
Comment by Jan de Groot (JGC) - Monday, 19 December 2011, 20:08 GMT
  • Field changed: Summary ([xorg-xinit] → [xorg-xdm] Fails if .xinitrc is not executable)
I'm not convinced that making these files executable is the solution. They're not just regular shellscripts, and the default ones that are installed in /etc/X11 aren't executable either. I think it's more or less a bug caused by one of our patches to xorg-xdm.
Comment by S├ębastien Luttringer (seblu) - Tuesday, 08 May 2012, 16:59 GMT
I also think we should fix this by allowing .xinitrc to not be executable.
Comment by Alex (bsdard) - Friday, 18 May 2012, 20:14 GMT
The issue also occurs with SLIM, so do not think it due to XDM patches.
In my case making ~/.xinitrc executable does not fix the issue. So far I am not sure what the solution is.
I had to set gingy -t instead of one of the agetty in the inittab, however its a workaround rather then the solution, since gingy does not work when it's graphical.In the text mode it would have been perfect had it been able to work properly with docking stations (eg. if I logout, I do not see the login prompt on the main screens and have to undock laptop and use it's screen to login, or perform a blind login).
Starting Xorg with xinit(startx) works just fine, so it's purely XDM/slim/etc issue.
Comment by Andreas Radke (AndyRTR) - Sunday, 26 January 2014, 15:15 GMT
Is this issue still valid?
Comment by David J. Haines (dhaines) - Friday, 12 December 2014, 15:57 GMT
It is.
Comment by Andreas Radke (AndyRTR) - Monday, 20 April 2015, 08:17 GMT
The skel files have been removed from the Arch package. So we are now more in the upstream way. Is there anything left?