Professional Web Applications Themes

su and X - Sun Solaris

Hello, I 'am unable to run an X-Application if I use su. What can I Do? Error: Can't open Display Thanks...

  1. #1

    Default su and X

    Hello,

    I 'am unable to run an X-Application if I use su.

    What can I Do?

    Error: Can't open Display



    Thanks



    Lorenz Guest

  2. #2

    Default Re: su and X

    In article <blsr4a$frv$01$t-online.com>,
    Lorenz <de> wrote: 

    You need to use xauth to copy the authorization data from the original
    user's .Xauthority file to root's.

    --
    Barry Margolin, com
    Level(3), Woburn, MA
    *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
    Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
    Barry Guest

  3. #3

    Default Re: su and X

    On Mon, 06 Oct 2003 22:49:59 +0000, Barry Margolin wrote:
     
    >
    > You need to use xauth to copy the authorization data from the original
    > user's .Xauthority file to root's.[/ref]

    Or just use su and not su -.

    Dave Guest

  4. #4

    Default Re: su and X


    "Dave Suse" <net> wrote in message
    news:com... 
    >
    > As a regular user, type 'xhost +' from the command line, then 'su' to
    > root and you should be ok.
    >
    > That'll work, but it's not the most secure way to do it. Use 'xhost
    > +yourbox' to limit access ('xhost +localhost' for example). man xhost
    > has the details.
    >
    > --Dave
    >[/ref]


    I think you missed the point, all thast needs doing is to set the display


    DJ Guest

  5. #5

    Default Re: su and X

    Lorenz wrote: 

    As a regular user, type 'xhost +' from the command line, then 'su' to
    root and you should be ok.

    That'll work, but it's not the most secure way to do it. Use 'xhost
    +yourbox' to limit access ('xhost +localhost' for example). man xhost
    has the details.

    --Dave

    Dave Guest

  6. #6

    Default Re: su and X

    In article <blsr4a$frv$01$t-online.com>,
    Lorenz <de> wrote: 

    See Vincent Zweije 's Remote X Apps mini-HOWTO
    <URL:http://www.xs4all.nl/~zweije/xauth.html>

    John
    org
    John Guest

  7. #7

    Default Re: su and X

    Dave Suse <net> writes in comp.unix.solaris:
    |As a regular user, type 'xhost +' from the command line, then 'su' to
    |root and you should be ok.

    Unless your machine is connected to a network with anyone who is not
    supposed to know the root password - xhost + allows ANYONE to connect
    to your X display and monitor keystrokes, view the contents of your
    windows, kill you programs, send fake keystrokes, etc.

    --
    __________________________________________________ ______________________
    Alan Coopersmith calberkeley.org
    http://www.CSUA.Berkeley.EDU/~alanc/ aka: COM
    Working for, but definitely not speaking for, Sun Microsystems, Inc.
    Alan Guest

  8. #8

    Default Re: su and X

    Dave Suse <net> wrote: [/ref]
     
     

    It might help. But the OP is not getting an authorization error (yet),
    he's getting a "can't reach" error.

    Setting DISPLAY (or doing a su without a dash as was mentioned earlier)
    would be better first step.

    --
    Darren Dunham com
    Unix System Administrator Taos - The SysAdmin Company
    Got some Dr Pepper? San Francisco, CA bay area
    < This line left intentionally blank to confuse you. >
    Darren Guest

  9. #9

    Default Re: su and X

    Darren Dunham <taos.com> wrote in message news:<RFBgb.8511$news.prodigy.com>... [/ref]


    >
    > It might help. But the OP is not getting an authorization error (yet),
    > he's getting a "can't reach" error.
    >
    > Setting DISPLAY (or doing a su without a dash as was mentioned earlier)
    > would be better first step.[/ref]

    (1) run xhost + command
    (2) telnet to the same machine and login
    (3) check for the DISPLAY variable if not set set it to the same machine:0.0
    (4) run ur Xapplication
    This we do very frequently

    Rama Murthy
    Rama Guest

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139