LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2005, 09:15 AM   #1
keithm_98
LQ Newbie
 
Registered: Jul 2005
Location: Dallas, Tx
Posts: 2

Rep: Reputation: 0
Xterm works find under root but getting error on other accounts.


I recently setup FC3 on my computer at home. I have a 700 Mghz computer I built myself. My problem is that I have decided to set it up as a server running Linux. I have been trying to install Oracle 9i on it and it lead me to a problem I am having with xterm under accounts other than root. When I am logged in as root, xterm works just fine. When I try to run it as any other account (after I have suse'd into it), I get the error unable to open display "localhost:0.0". Do I need to log in as the other account from the login screen to make it work?
 
Old 07-05-2005, 09:33 AM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 47
As a security feature, X11 does not allow other users to start a window in an active display.

As a simple example of why this is a good idea imagine a malicious user starting up a Firefox browser pointed at a porn site on *your* X11 screen just as your boss walked past.

There are ways to disable this feature, but the best things to do are:

(a) Not log into X as root, it's bad for security

(b) Start up a new Xterm and use the "su" command to switch to the other user when necessary.
 
Old 07-05-2005, 09:40 AM   #3
keithm_98
LQ Newbie
 
Registered: Jul 2005
Location: Dallas, Tx
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks. Of course right now, this machine does not have access to the internet but I hope to have that issue resolved soon also. I will keep that in mind. Of course the instructions I had for installing Oracle said to SU in as the oracle id. I will try logging in as another account and see how that goes.
 
Old 07-05-2005, 02:19 PM   #4
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
Of course, if you do want other users to be able to pop up windows in your X session then you can do this from a terminal:

Code:
xhost +localhost
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Root and all user accounts disabled mht17 Linux - Newbie 3 05-10-2011 07:23 PM
how to determine if /dev/pts works (i cannot run xterm) stpg Linux - General 2 08-11-2004 10:33 AM
can i view user accounts with root? guggenheim Linux - General 2 03-17-2004 06:35 PM
MDK 9.1: sound works though not in games, artswapper error need setuid root + other lhaman Linux - Distributions 0 04-02-2003 04:24 AM
xterm in root window symphony_in_c Linux - General 2 07-02-2002 03:15 PM


All times are GMT -5. The time now is 11:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration