[winswitch] /run/xpra directory permissions

shanew at shanew.net shanew at shanew.net
Thu Feb 16 20:40:30 GMT 2017


Do you have the file /usr/lib/tmpfiles.d/xpra.conf on your gentoo
installation?  This should cause gentoo to create the /run/xpra
directory with the appropriate permission at boot time (since /run is
a tmpfs thing these days).

Note though that users will need to be in the xpra group for this to
work.  If you don't want that group restriction, you could edit that
file so that the permissions get set to 777 (or add an over-riding
entry to /etc/tmpfiles.d, since the package installed one will likely
get over-written when you update).


On Thu, 16 Feb 2017, Stroller via shifter-users wrote:

> I'll respond to my other thread momentarily, but I now have xpra running, and thank Antoine for his help.
>
> In the process of this, I got this error:
>
>   $ xpra start :100 --start-child=xterm
>   $ Entering daemon mode; any further errors will be reported to:
>     /home/stroller/.xpra/:100.log
>
>   $ tail -n 100 -f /home/stroller/.xpra/\:100.log
>
>   X.Org X Server 1.18.4
>   Release Date: 2016-07-19
>   X Protocol Version 11, Revision 0
>   Build Operating System: Linux 4.9.4-gentoo x86_64 Gentoo
>   Current Operating System: Linux alrai 4.9.4-gentoo #2 SMP Fri Jan 20 08:38:04 GMT 2017 x86_64
>   Kernel command line: BOOT_IMAGE=/kernel-4.9.4-gentoo root=/dev/sda4 ro
>   Build Date: 16 February 2017  06:34:00PM
>
>   Current version of pixman: 0.34.0
>           Before reporting problems, check http://wiki.x.org
>           to make sure that you have the latest version.
>   Markers: (--) probed, (**) from config file, (==) default setting,
>           (++) from command line, (!!) notice, (II) informational,
>           (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
>   (++) Log file: "/home/stroller/.xpra/Xorg.:100.log", Time: Thu Feb 16 18:39:49 2017
>   (++) Using config file: "/etc/xpra/xorg.conf"
>   2017-02-16 18:39:51,748 Warning: failed to create socket directory '/run/xpra'
>   2017-02-16 18:39:51,749  [Errno 13] Permission denied: '/run/xpra'
>   2017-02-16 18:39:51,750 Error: failed to create socket '/run/xpra/alrai-100':
>   2017-02-16 18:39:51,750  [Errno 2] No such file or directory
>   xpra initialization error:
>    failed to create socket /run/xpra/alrai-100
>   2017-02-16 18:39:51,752 killing xvfb with pid 31722
>   (II) Server terminated successfully (0). Closing log file.
>   ^C
>   $
>
> I was able to resolve this by creating a /run/xpra directory and I temporarily gave it permissions 777.
>
> As I said before, I'm running Gentoo xpra-1.0.3, installed with the latest x11-wm/xpra ebuild currently in the Portage tree.
>
> The ebuild creates an xpra group (in /etc/group) when the package is installed on the system.
>
> I'm thinking the install should also create a /run/xpra directory on installation, with permissions that members of the xpra group can write to it (but not other users). Does this sound reasonable? If so, I'll file a bug to this effect with Gentoo.
>
> I do appreciate all your hard work,
>
> Stroller.
>
>
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
>

-- 
Public key #7BBC68D9 at            |                 Shane Williams
http://pgp.mit.edu/                |      System Admin - UT CompSci
=----------------------------------+-------------------------------
All syllogisms contain three lines |              shanew at shanew.net
Therefore this is not a syllogism  | www.ischool.utexas.edu/~shanew



More information about the shifter-users mailing list