Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 440606

Summary: x11-wm/xpra-0.7.1-r1 fails to start the server
Product: Gentoo Linux Reporter: Krzysztof Magusiak <chrmag>
Component: Current packagesAssignee: Michael Weber (RETIRED) <xmw>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://xpra.org/Xdummy.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Krzysztof Magusiak 2012-10-31 14:48:58 UTC
The server does not start because it cannot read /usr/bin/Xorg.

Reproducible: Always

Steps to Reproduce:
1. xpra start :7
2. xpra list
Actual Results:  
The server is not started and the log contains:
    cp: cannot open ‘/usr/bin/Xorg’ for reading: Permission denied
    /usr/bin/xpra_Xdummy: line 11: /home/k/.xpra/Xorg: No such file or directory
    could not connect to X server on display ':7' after 3 seconds
    2012-10-31 15:14:15,581 removing socket /home/k/.xpra/k-pc-7

Expected Results:  
The server should start.

The permissions of /usr/bin/Xorg are set to -rws--x--x.
Comment 1 Michael Weber (RETIRED) gentoo-dev 2012-10-31 17:59:18 UTC
xpra start copies the Xorg binary into the users home,
This user should not be root and Xorg should be own root.root.
You have to grant read to the user.

See elog
    einfo
    elog "please make your Xorg binary readable for users of xpra"
    elog "  chmod a+r /usr/bin/Xorg"
    elog "and think about the security impact"
    einfo

Scenario 1) everybody is allowed to read Xorg
  chmod a+r /usr/bin/Xorg
Scenario 2) a special group is allowed to read xorg
  groupadd -r xpra
  usermod -G -a xpra <username>
  chgrp xpra /usr/bin/Xorg
  chmod g+r /usr/bin/Xorg
  #relogin