Find the answer to your Linux question:
Results 1 to 7 of 7
Hello world! I was wondering, is it possible for me (I have admin) to change the "xhost" to "xhost -" of another user, from another computer if I'm logged on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! Vampire5's Avatar
    Join Date
    Jan 2012
    Posts
    22

    Control xhost of another user


    Hello world!

    I was wondering, is it possible for me (I have admin) to change the "xhost" to "xhost -" of another user, from another computer if I'm logged on to it remotely via ssh?

    Thanks!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,393
    What exactly are you trying to do? The xhost command is to control access to a specific X server, which in the case of a remote user is running on their remote system. IE, controlling access to THEIR environment. So, as I asked, what EXACTLY do you want to do?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined! Vampire5's Avatar
    Join Date
    Jan 2012
    Posts
    22

    Re

    Quote Originally Posted by Rubberman View Post
    What exactly are you trying to do? The xhost command is to control access to a specific X server, which in the case of a remote user is running on their remote system. IE, controlling access to THEIR environment. So, as I asked, what EXACTLY do you want to do?
    What I mean to do is be able to change the xhost settings for another user that is logged on via GUI. In other words, I log on remotely to a computer, there is a user that is logged on via GUI, and I can change their xhost settings using root.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,393
    Quote Originally Posted by Vampire5 View Post
    What I mean to do is be able to change the xhost settings for another user that is logged on via GUI. In other words, I log on remotely to a computer, there is a user that is logged on via GUI, and I can change their xhost settings using root.
    See the xhost man page. You can control access to users as well as remote hosts.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined! Vampire5's Avatar
    Join Date
    Jan 2012
    Posts
    22

    Re:

    Quote Originally Posted by Rubberman View Post
    See the xhost man page. You can control access to users as well as remote hosts.
    I know that, I just need to know if there's an option that isn't on the man page, that I could use. Is there a way I could specify the display?

  6. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,393
    Quote Originally Posted by Vampire5 View Post
    I know that, I just need to know if there's an option that isn't on the man page, that I could use. Is there a way I could specify the display?
    No. As per the man page:
    You can’t specify a display on the command line because -display is a valid command line argument (indicating
    that you want to remove the machine named ‘‘display’’ from the access list).
    FWIW, this is in the BUGS section of the document.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  7. #7
    Just Joined! Vampire5's Avatar
    Join Date
    Jan 2012
    Posts
    22

    Re:

    Ok, thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •