LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 07-03-2009, 03:04 AM   #1
Umanga
Member
 
Registered: Aug 2004
Location: Sri Lanka
Distribution: Debian Etch
Posts: 36

Rep: Reputation: 15
Question Cannot access X server with different login ?


Greetings all,

I have two user accounts 'umanga' and 'vito'.
I logged into GNome session using 'umanga' account.

Then I open a console ,'su' and login as root.
Next using 'login' command I login as user 'vito'.

After that, when i try to execute GUI applications it says
"kcalc: cannot connect to X server "
When trying to do 'xhost'
xhost: unable to open display ""

Who can I run GUI application under this condition (under 'vito' account).


Thanks in advance,
umanga
 
Old 07-03-2009, 07:55 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 59
After you login as vito type

export DISPLAY=:0.0

Then you should be able to use graphics. BTW, why do you have to go to root and login as vito, you can just type

su - vito

when logged in as umanga and get the same result...
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to login to server thru console but able to login via network using putty maxy7710 Linux - Newbie 4 01-12-2010 11:27 AM
Unable to see shares on samba server - no authentication access desired (open access) neoelf Linux - Networking 1 06-14-2009 04:18 PM
GDM: Access login credentials after login elchupanebre Linux - Desktop 5 10-30-2008 05:53 AM
How to you access a second server hard wired to the server you can access with Putty? kortoom Linux - Server 2 06-16-2008 10:24 PM
Access Denied when I try to login remotely to my SSH server running on Cygwin. andrew_cz General 0 05-02-2006 10:46 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration