The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Xwindows amu Linux 0 04-08-2008 06:42 AM
sudo, or not sudo: that is the question iBot UNIX and Linux RSS News 1 02-07-2008 09:40 AM
Xwindows on a HMC pagink AIX 5 06-21-2006 02:43 AM
XWindows wojtyla Linux 5 02-19-2005 02:48 PM
XWindows on Mac OSX Alpha_Harblo UNIX for Dummies Questions & Answers 2 08-05-2001 10:28 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-24-2006
Registered User
 

Join Date: Nov 2005
Posts: 14
xwindows over ssh after sudo?

ok...I'm stumped on this one. I cannot figure out how to carry over my environment variables with a sudo command. I need to install an application under root and only have sudo access to get there. I can use ssh -Y <host> and launch an xwindows session successfully as myself but as soon as I sudo su -, i lose my environment (as would be expected) and then of course the display varibale is missing.

How can I successfully launch an xwindows app on a system as another user?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-24-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
How about running just su, instead of su -?
Reply With Quote
  #3 (permalink)  
Old 08-25-2006
Registered User
 

Join Date: Nov 2005
Posts: 14
Duh!

I'm so used to importing the environment never thought about leaving the "-" off. That worked....Thanks for the response.
Reply With Quote
  #4 (permalink)  
Old 08-26-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
No problem. I find it funny since I always had the opposite problem... "...huh? why can't root find fdisk?" and had to painfully reteach myself to use su -
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0