* How to setuid X.org?
@ 2017-03-20 3:02 dian_cecht
2017-03-20 6:48 ` Marius Bakke
2017-03-20 8:50 ` Ludovic Courtès
0 siblings, 2 replies; 4+ messages in thread
From: dian_cecht @ 2017-03-20 3:02 UTC (permalink / raw)
To: help-guix
Hello,
I have tried several times to get X.org (/bin/X, specifically)
setuid for obvious reasons. However, I can't find any examples of usage
and attempting to follow the infopages has led to a bunch of different
errors and failures (and rather useless error messages). I currently
don't have any useful logs of what I tried and the output (it was on a
LiveUSB I'm using for testing purposes), but I'm not wanting to use
%desktop-services (or other service packs, for that matter), which has
already been suggested.
Can someone either A) improve the documents for setuid programs (and
gexps) with some practical examples, or B) provide me with a (hopefully
working) snippet to add to the config?
Either would work for me, though the previous option is clearly the
better of the two.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to setuid X.org?
2017-03-20 3:02 How to setuid X.org? dian_cecht
@ 2017-03-20 6:48 ` Marius Bakke
2017-03-20 8:50 ` Ludovic Courtès
1 sibling, 0 replies; 4+ messages in thread
From: Marius Bakke @ 2017-03-20 6:48 UTC (permalink / raw)
To: dian_cecht, help-guix
[-- Attachment #1: Type: text/plain, Size: 1200 bytes --]
dian_cecht@zoho.com writes:
> Hello,
>
> I have tried several times to get X.org (/bin/X, specifically)
> setuid for obvious reasons. However, I can't find any examples of usage
> and attempting to follow the infopages has led to a bunch of different
> errors and failures (and rather useless error messages). I currently
> don't have any useful logs of what I tried and the output (it was on a
> LiveUSB I'm using for testing purposes), but I'm not wanting to use
> %desktop-services (or other service packs, for that matter), which has
> already been suggested.
>
> Can someone either A) improve the documents for setuid programs (and
> gexps) with some practical examples, or B) provide me with a (hopefully
> working) snippet to add to the config?
Setuid programs are documented here:
https://www.gnu.org/software/guix/manual/guix.html#Setuid-Programs
Following the "passwd" example, making "X" setuid root would be declared
like this:
(operating-system
[...]
(setuid-programs
(cons #~(string-append #$xorg-server "/bin/X")
%setuid-programs))
It's not clear to me how to improve this since it's very similar to how
other defaults are overridden. Any suggestions?
TIA!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to setuid X.org?
2017-03-20 3:02 How to setuid X.org? dian_cecht
2017-03-20 6:48 ` Marius Bakke
@ 2017-03-20 8:50 ` Ludovic Courtès
2017-03-21 15:11 ` dian_cecht
1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2017-03-20 8:50 UTC (permalink / raw)
To: dian_cecht; +Cc: help-guix
Hello,
<dian_cecht@zoho.com> skribis:
> I have tried several times to get X.org (/bin/X, specifically)
> setuid for obvious reasons. However, I can't find any examples of usage
> and attempting to follow the infopages has led to a bunch of different
> errors and failures (and rather useless error messages). I currently
> don't have any useful logs of what I tried and the output (it was on a
> LiveUSB I'm using for testing purposes), but I'm not wanting to use
> %desktop-services (or other service packs, for that matter), which has
> already been suggested.
To complement what Marius wrote, note that you don’t have to use
‘%desktop-services’ as-is to get X running. You can remove services you
don’t want from ‘%desktop-services’ as shown at
<https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html#System-Services>
(search for “remove”), or you can build your own service list.
In the latter case, you’ll want at least ‘slim-service’ or
‘sddm-service’ for the graphical login manager. See
<https://www.gnu.org/software/guix/manual/html_node/X-Window.html> and
<https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n749>.
If you don’t want a graphical login manager, the solution would be to
install ‘xinit’ (which provides the ‘startx’ command) rather than make
Xorg setuid-root. However, people reported in the past that there were
problems with ‘xinit’, though I forgot what it was.
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to setuid X.org?
2017-03-20 8:50 ` Ludovic Courtès
@ 2017-03-21 15:11 ` dian_cecht
0 siblings, 0 replies; 4+ messages in thread
From: dian_cecht @ 2017-03-21 15:11 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: help-guix
On Mon, 20 Mar 2017 09:50:21 +0100
ludo@gnu.org (Ludovic Courtès) wrote:
> However, people reported in the past that there were problems with
> ‘xinit’, though I forgot what it was.
I booted into the LiveUSB I was using for testing and xinit/startx was
looking for X in it's own directory. I didn't try changing anything,
but if you are refering to some breakage with startx, that is what I
ran across.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-21 15:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-20 3:02 How to setuid X.org? dian_cecht
2017-03-20 6:48 ` Marius Bakke
2017-03-20 8:50 ` Ludovic Courtès
2017-03-21 15:11 ` dian_cecht
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.