Difference between 'xhost + ' and 'xhost +SI:localuser:AnotherUser'
Clash Royale CLAN TAG#URR8PPP
If I do
xhost +
>access control disabled, clients can connect from any host
su AnotherUser -c xterm
an xterm pops up.
However if I do
xhost +SI:localuser:AnotherUser
>localuser:AnotherUser being added to access control list
su AnotherUser -c xterm
I got No protocol specified
, I'd like to understand why it doesn't work.
I am in Debian sid amd64
x11 su xhost
|
show 2 more comments
If I do
xhost +
>access control disabled, clients can connect from any host
su AnotherUser -c xterm
an xterm pops up.
However if I do
xhost +SI:localuser:AnotherUser
>localuser:AnotherUser being added to access control list
su AnotherUser -c xterm
I got No protocol specified
, I'd like to understand why it doesn't work.
I am in Debian sid amd64
x11 su xhost
Could you edit your question and add the output ofxhost
after you have added permission for the second user.
– X Tian
Aug 19 '15 at 18:10
I added the output ofxhost
, which was requested by @XTian, as>output
,
– user129340
Aug 20 '15 at 7:52
1
Works for me; similar platform.su -c xclock
fails before Ixhost +SI:localuser:root
and succeeds afterwards. Can you show us what your$DISPLAY
looks like, and also the output ofxhost
with no arguments?
– Toby Speight
Aug 21 '15 at 12:27
@TobySpeight: please note that AnotherUser is a user different from root; xhost is issued by root; the output isaccess control enabled, only authorized clients can connect
SI:localuser:root
– user129340
Aug 21 '15 at 15:19
Increase verbosity for X server to understand that better (bbs.archlinux.org/viewtopic.php?pid=1243478#p1243478). Here they write that problems may be connected to DISPLAY or XAUTHORITY (unix.stackexchange.com/a/118826/89346).
– Yaroslav Nikitenko
Oct 17 '16 at 16:12
|
show 2 more comments
If I do
xhost +
>access control disabled, clients can connect from any host
su AnotherUser -c xterm
an xterm pops up.
However if I do
xhost +SI:localuser:AnotherUser
>localuser:AnotherUser being added to access control list
su AnotherUser -c xterm
I got No protocol specified
, I'd like to understand why it doesn't work.
I am in Debian sid amd64
x11 su xhost
If I do
xhost +
>access control disabled, clients can connect from any host
su AnotherUser -c xterm
an xterm pops up.
However if I do
xhost +SI:localuser:AnotherUser
>localuser:AnotherUser being added to access control list
su AnotherUser -c xterm
I got No protocol specified
, I'd like to understand why it doesn't work.
I am in Debian sid amd64
x11 su xhost
x11 su xhost
edited Feb 2 at 9:36
ctrl-alt-delor
11.6k42159
11.6k42159
asked Aug 19 '15 at 15:26
user129340user129340
163
163
Could you edit your question and add the output ofxhost
after you have added permission for the second user.
– X Tian
Aug 19 '15 at 18:10
I added the output ofxhost
, which was requested by @XTian, as>output
,
– user129340
Aug 20 '15 at 7:52
1
Works for me; similar platform.su -c xclock
fails before Ixhost +SI:localuser:root
and succeeds afterwards. Can you show us what your$DISPLAY
looks like, and also the output ofxhost
with no arguments?
– Toby Speight
Aug 21 '15 at 12:27
@TobySpeight: please note that AnotherUser is a user different from root; xhost is issued by root; the output isaccess control enabled, only authorized clients can connect
SI:localuser:root
– user129340
Aug 21 '15 at 15:19
Increase verbosity for X server to understand that better (bbs.archlinux.org/viewtopic.php?pid=1243478#p1243478). Here they write that problems may be connected to DISPLAY or XAUTHORITY (unix.stackexchange.com/a/118826/89346).
– Yaroslav Nikitenko
Oct 17 '16 at 16:12
|
show 2 more comments
Could you edit your question and add the output ofxhost
after you have added permission for the second user.
– X Tian
Aug 19 '15 at 18:10
I added the output ofxhost
, which was requested by @XTian, as>output
,
– user129340
Aug 20 '15 at 7:52
1
Works for me; similar platform.su -c xclock
fails before Ixhost +SI:localuser:root
and succeeds afterwards. Can you show us what your$DISPLAY
looks like, and also the output ofxhost
with no arguments?
– Toby Speight
Aug 21 '15 at 12:27
@TobySpeight: please note that AnotherUser is a user different from root; xhost is issued by root; the output isaccess control enabled, only authorized clients can connect
SI:localuser:root
– user129340
Aug 21 '15 at 15:19
Increase verbosity for X server to understand that better (bbs.archlinux.org/viewtopic.php?pid=1243478#p1243478). Here they write that problems may be connected to DISPLAY or XAUTHORITY (unix.stackexchange.com/a/118826/89346).
– Yaroslav Nikitenko
Oct 17 '16 at 16:12
Could you edit your question and add the output of
xhost
after you have added permission for the second user.– X Tian
Aug 19 '15 at 18:10
Could you edit your question and add the output of
xhost
after you have added permission for the second user.– X Tian
Aug 19 '15 at 18:10
I added the output of
xhost
, which was requested by @XTian, as >output
,– user129340
Aug 20 '15 at 7:52
I added the output of
xhost
, which was requested by @XTian, as >output
,– user129340
Aug 20 '15 at 7:52
1
1
Works for me; similar platform.
su -c xclock
fails before I xhost +SI:localuser:root
and succeeds afterwards. Can you show us what your $DISPLAY
looks like, and also the output of xhost
with no arguments?– Toby Speight
Aug 21 '15 at 12:27
Works for me; similar platform.
su -c xclock
fails before I xhost +SI:localuser:root
and succeeds afterwards. Can you show us what your $DISPLAY
looks like, and also the output of xhost
with no arguments?– Toby Speight
Aug 21 '15 at 12:27
@TobySpeight: please note that AnotherUser is a user different from root; xhost is issued by root; the output is
access control enabled, only authorized clients can connect
SI:localuser:root
– user129340
Aug 21 '15 at 15:19
@TobySpeight: please note that AnotherUser is a user different from root; xhost is issued by root; the output is
access control enabled, only authorized clients can connect
SI:localuser:root
– user129340
Aug 21 '15 at 15:19
Increase verbosity for X server to understand that better (bbs.archlinux.org/viewtopic.php?pid=1243478#p1243478). Here they write that problems may be connected to DISPLAY or XAUTHORITY (unix.stackexchange.com/a/118826/89346).
– Yaroslav Nikitenko
Oct 17 '16 at 16:12
Increase verbosity for X server to understand that better (bbs.archlinux.org/viewtopic.php?pid=1243478#p1243478). Here they write that problems may be connected to DISPLAY or XAUTHORITY (unix.stackexchange.com/a/118826/89346).
– Yaroslav Nikitenko
Oct 17 '16 at 16:12
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f224235%2fdifference-between-xhost-and-xhost-silocaluseranotheruser%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f224235%2fdifference-between-xhost-and-xhost-silocaluseranotheruser%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Could you edit your question and add the output of
xhost
after you have added permission for the second user.– X Tian
Aug 19 '15 at 18:10
I added the output of
xhost
, which was requested by @XTian, as>output
,– user129340
Aug 20 '15 at 7:52
1
Works for me; similar platform.
su -c xclock
fails before Ixhost +SI:localuser:root
and succeeds afterwards. Can you show us what your$DISPLAY
looks like, and also the output ofxhost
with no arguments?– Toby Speight
Aug 21 '15 at 12:27
@TobySpeight: please note that AnotherUser is a user different from root; xhost is issued by root; the output is
access control enabled, only authorized clients can connect
SI:localuser:root
– user129340
Aug 21 '15 at 15:19
Increase verbosity for X server to understand that better (bbs.archlinux.org/viewtopic.php?pid=1243478#p1243478). Here they write that problems may be connected to DISPLAY or XAUTHORITY (unix.stackexchange.com/a/118826/89346).
– Yaroslav Nikitenko
Oct 17 '16 at 16:12