Results 1 to 9 of 9
  1. #1
    left this forum longback praka123's Avatar
    Join Date
    Sep 2005
    Location
    -
    Posts
    7,513

    Default gui-apps not opening, when i login as "su -"

    Hello All,
    I use Debian Sarge .i cant open any gui apps for eg;gedit as "su -"
    i tried exporting $DISPLAY value
    Code:
    prakash@sarge:~$ echo $DISPLAY
    :0.0
    prakash@sarge:~$ su -
    Password:
    sarge:~# export DISPLAY=:0.0
    sarge:~# gedit
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    
    
    (gedit:9926): Gtk-WARNING **: cannot open display:
    Code:
    prakash@sarge:~$ xhost +
    access control disabled, clients can connect from any host
    now if i try opening gedit it will open.so any help..
    left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
    Get GNU/Linux - http://getgnulinux.org

  2. #2
    El mooooo eddie's Avatar
    Join Date
    Jan 2006
    Location
    India
    Posts
    1,414

    Default

    it is a security feature so that users don't run GUI apps as Root. Anyways, have a look here for a few solutions
    http://www.mepislovers-wiki.org/inde...ograms_as_root

  3. #3
    left this forum longback praka123's Avatar
    Join Date
    Sep 2005
    Location
    -
    Posts
    7,513

    Default

    Nyways i already installed sux,which allows to run gui-apps when login as :
    Code:
    prakash@sarge:~$ sux -
    Password:
    sarge:~# gedit
    but where do those security things cant we modify for logon..i understand that acl is enabled in default for most distros..but they allow running progs as "su",what is wrong with "su -"..thanks all.
    left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
    Get GNU/Linux - http://getgnulinux.org

  4. #4
    FooBar Guy GNUrag's Avatar
    Join Date
    Jun 2004
    Location
    GNUmbai
    Posts
    1,245

    Default

    Your X Server is not allowing another user to open Your dosplay.

    You need to disable X authentication.

    $ xhost +

    and then switch users;

    Directly giving su retains your original user's environment variables, and su - loads the new user's environment profile. Hence the disparity.

  5. #5
    left this forum longback praka123's Avatar
    Join Date
    Sep 2005
    Location
    -
    Posts
    7,513

    Default

    I dont want any compromise in security..so no "xhost +".for now happy with "sux -".i use this command as a shortcut in my gnome taskbar with "run in terminal ticked",so that if i click it show a passwd prompt and directly i can be root.this is for some purposes like
    Code:
    sarge:~# pon dsl-provider
    and many uses.i am accustomed this way.thanks to all.but no real answer came
    left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
    Get GNU/Linux - http://getgnulinux.org

  6. #6
    FooBar Guy GNUrag's Avatar
    Join Date
    Jun 2004
    Location
    GNUmbai
    Posts
    1,245

    Default

    Quote Originally Posted by prakash kerala
    thanks to all.but no real answer came
    What was your problem?

  7. #7
    left this forum longback praka123's Avatar
    Join Date
    Sep 2005
    Location
    -
    Posts
    7,513

    Default

    Quote Originally Posted by GNUrag
    What was your problem?
    not a problem. a doubt-how can we enable "su -" to open gedit or any such xapps.thats what i am trying from starting of thread

  8. #8
    FooBar Guy GNUrag's Avatar
    Join Date
    Jun 2004
    Location
    GNUmbai
    Posts
    1,245

    Default

    $ gksu gedit
    $ gksudo gedit

    Use any of the two, ideally put then as command for new launchers.

    Does this solve your problem?

  9. #9
    String Phreak mediator's Avatar
    Join Date
    Mar 2005
    Location
    In ur Evil Mind!
    Posts
    2,458

    Default

    nice info!
    Bad Bad server.....No candy for u!

Similar Threads

  1. Replies: 2
    Last Post: 23-07-2012, 04:17 PM
  2. Replies: 5
    Last Post: 02-10-2007, 02:11 PM
  3. Replies: 7
    Last Post: 27-06-2007, 10:46 PM
  4. How to login as "ROOT" in Ubuntu ???
    By Rishabh_sharma1990 in forum Open Source
    Replies: 2
    Last Post: 16-04-2007, 07:57 PM
  5. "Login failed" on Yahoo! Go for mobile??
    By nikhilpai in forum Mobiles and Tablets
    Replies: 12
    Last Post: 09-03-2007, 11:04 AM

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
  •  
Close