Networking Forums

Networking Forums > Computer Networking > Linux Networking > Re: Trouble with X11 over SSH on Mandriva 2010.0

Reply
Thread Tools Display Modes

Re: Trouble with X11 over SSH on Mandriva 2010.0

 
 
David W. Hodgins
Guest
Posts: n/a

 
      02-24-2010, 06:27 PM
On Wed, 24 Feb 2010 13:00:27 -0500, Kevin the Drummer <(E-Mail Removed)> wrote:

> On my Mandriva 2007.0 system X11 works over SSH. Here's my test case
> that I need to have working.
>
> 1. ssh -f somehost xterm
> 2. 'su' in the new xterm
> 3. run any graphical program from the su'd shell
>
> On the Mandriva 2007.0 system this works fine. On my 2010 system I get
> this error:


Instead of using su, then the graphical program, try sudo program.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
 
Reply With Quote
 
 
 
 
Chris Davies
Guest
Posts: n/a

 
      03-02-2010, 10:50 PM
Kevin the Drummer <(E-Mail Removed)> wrote:
> Say, I've been wanting to know how to get sudo to work with redirection.
> By that I mean that I need root permission to write into the redirection
> target.


Consider:
some_command > some_file

The "> some_file" happens before "some_command" is run. So when you try
this with sudo:
sudo some_command > some_file

The "> some_file" happens as the invoking user, not as the sudo target
user. (But you know this, right?)

So, in order to get the "> some_file" to happen as the sudo target user,
you need to include that in the sudo command. The only way to get that
to happen is to have sudo execute a shell. So you get this:
sudo sh -c "some_command > some_file"

I'm sure you can create variations on that theme for tcsh.
Chris
 
Reply With Quote
Reply

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 Off




1 2 3 4 5 6 7 8 9 10 11