Results 1 to 2 of 2

Thread: On one machine, I can not su and run graphical apps.

  1. #1
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default On one machine, I can not su and run graphical apps.

    Hi,

    On one machine, running 13.1 32 bits, with XFCE (or LXDE, if I remember
    the name right), I get (typed):

    Code:
    su -
    leafpad
    leafpad: Can not open display:
    (the text is hand copied from the other machine, for obvious reasons (no
    forum access there)).

    Leafpad is just an example application, all graphical apps fail.


    The problem is the same with any user, not only root. Like "su -
    anyuser". There is no "DISPLAY" var.

    But, if I do:

    Code:
    ssh anyuser@localhost
    Everything runs perfectly. Also, doing:

    Code:
    su -
    DISPLAY=:0 leafpad
    works.

    So... what is making the DISPLAY variable to be unset?
    Perhaps the default "sudoers" settings are wrong? :-?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: On one machine, I can not su and run graphical apps.

    On 2014-10-20 12:25, Carlos E. R. wrote:

    > So... what is making the DISPLAY variable to be unset?
    > Perhaps the default "sudoers" settings are wrong? :-?


    Oops. Not sudoers. Wrong file, does not apply to "su".

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

Posting Permissions

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