Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 09-03-2006, 05:46 AM   #1 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
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
praka123 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 09-03-2006, 10:25 AM   #2 (permalink)
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
eddie is offline  
Old 09-03-2006, 12:41 PM   #3 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
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
praka123 is offline  
Old 09-03-2006, 01:40 PM   #4 (permalink)
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.
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Old 09-03-2006, 07:59 PM   #5 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
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
praka123 is offline  
Old 10-03-2006, 11:16 AM   #6 (permalink)
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?
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Old 10-03-2006, 12:16 PM   #7 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
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
praka123 is offline  
Old 10-03-2006, 01:09 PM   #8 (permalink)
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?
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Old 20-03-2006, 11:34 PM   #9 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default

nice info!
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by icebags
- by clinton
- by topgear

Advertisement




All times are GMT +5.5. The time now is 10:22 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2