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 11-26-2005, 10:17 AM   #1
h2gofast
Member
 
Registered: Dec 2002
Distribution: Debian
Posts: 154

Rep: Reputation: 30
run program as different user


I'm trying to run a program as a different user by opening an xterm
su otheruser and then entering the command.

Code:
h2gofast@h2:/home/h2$ xmms
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


** CRITICAL **: Unable to open display
what permissions would I have to change to make this work? or is it not possible?
thanks in advance.
 
Old 11-26-2005, 10:32 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Code:
$xhost +
$su userid
$appToRun
 
Old 11-26-2005, 12:05 PM   #3
h2gofast
Member
 
Registered: Dec 2002
Distribution: Debian
Posts: 154

Original Poster
Rep: Reputation: 30
thanks dude, you rock.
 
  


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
Need to have program run as different user exodist Linux - Software 5 10-26-2005 10:07 PM
Run program as user falcon Linux - Newbie 1 11-07-2004 11:17 AM
How Do I Run A Program As A Different User?? Wolf-67 Linux - Newbie 3 10-04-2004 12:26 PM
run program after user logs in kinasz Linux - General 2 09-22-2004 03:47 AM
How to run a program as a different user? Guru3 Linux - General 4 11-04-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:07 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