Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440606 - x11-wm/xpra-0.7.1-r1 fails to start the server
Summary: x11-wm/xpra-0.7.1-r1 fails to start the server
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL: http://xpra.org/Xdummy.html
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-31 14:48 UTC by Krzysztof Magusiak
Modified: 2012-10-31 17:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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