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 24-01-2005, 07:13 PM   #1 (permalink)
Certified Nutz
 
sreevirus's Avatar
 
Join Date: Jan 2004
Location: The 3rd rock from the sun
Posts: 310
Default cant open kwrite or kedit as root thru terminal


i just noticed this problem:
i cant open kwrite or kedit or gedit as super user thru the terminal, while i can do so when i'm not root...i'm using suse 9.1 professional.
i never noticed this, coz i usually modified files by logging in directly as root and didnt use the terminal much.
any1 facing such problem? why is this happening? any answers?
thanx
__________________
"Don't take life too seriously. You'll never get out alive!" - Bugs Bunny
sreevirus is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 24-01-2005, 07:56 PM   #2 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default Re: cant open kwrite or kedit as root thru terminal

Quote:
Originally Posted by sreevirus
i just noticed this problem:
i cant open kwrite or kedit or gedit as super user thru the terminal, while i can do so when i'm not root...i'm using suse 9.1 professional.
This is not a problem, but a security feature that is provided by X-Server so that no one else can run his processes in a x-server owned by another user. As you know, X-Server is a very versatile Windowing System where in one can use the display of another machine.. even across the network. X-Server maintains an access control so that no one else can use your desktop.

So when you login as root, then Xserver does no allow the root user to use the display owned by the normal user. For allowing root to use your desktop, the normal user has to disable this access control by giving xhost +

Quote:
Originally Posted by sreevirus
i never noticed this, coz i usually modified files by logging in directly as root and didnt use the terminal much.
Next time follow this exact procedure.
$ xhost +
$ su
# gedit


the xhost + command will disable the access control, so that all the users logged onto your system can use the display window owned by you.

Quote:
Originally Posted by sreevirus
any1 facing such problem? why is this happening? any answers?thanx
Everyone can face this situation. As i said, this is not a problem but a security feature.
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Old 24-01-2005, 08:24 PM   #3 (permalink)
Certified Nutz
 
sreevirus's Avatar
 
Join Date: Jan 2004
Location: The 3rd rock from the sun
Posts: 310
Default

thanx for the reply GNU, i thot it was a problem coz in fc3, i cud do those things as root...
anyway, ur reply cleared it up for me.
thx again
__________________
"Don't take life too seriously. You'll never get out alive!" - Bugs Bunny
sreevirus 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 clmlbx
- by Sujeet
- by icebags

Advertisement




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


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

Search Engine Optimization by vBSEO 3.3.2