Prev: X11 just froze, and /var/log/syslog (dmesg)'s output seems to mean something
Next: Accelerating directory's content's viewing: how, is directory is huge?
From: Robert Latest on 18 May 2010 14:10 Hello all, my question is already in the subject line. Also I think that I've got the basics figured out, it's just that I don't understand the details. Essentially I want user A to run a specific X app as user B. So I think I need to write a tiny shell script like this: #!/bin/sh xhost +B sudo -u B /path/to/app arg1 arg2 arg3 xhost -B I need help with two things though: One, "xhost +B" doesn't work, contrary to the manpage. "xhost +" works, granting X access to the entire Net, but who cares. This is just a home computer. Two, I can't figure out for the life of me what the entry in /etc/sudoers must look like to make sudo do what I want. Thanks, robert -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/AANLkTinaGUvyzL8f_eIwWB4dmbf2i9VJHKFrwuq-9HD7(a)mail.gmail.com
From: Clive Standbridge on 18 May 2010 15:40 > Essentially I want user A to run a specific X app as user B. So I > think I need to write a tiny shell script like this: > > #!/bin/sh > xhost +B > sudo -u B /path/to/app arg1 arg2 arg3 > xhost -B Alternatively, sux B /path/to/app arg1 arg2 arg3 Needs user B's password. Requires package sux. If you have sshd set up with X forwarding enabled, you could also do ssh -X B(a)localhost /path/to/app arg1 arg2 arg3 but this one feels like overkill. -- Cheers, Clive (end of message) -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/20100518192058.GA3841(a)rimmer.esmertec.com
From: Liam O'Toole on 18 May 2010 17:10
On 2010-05-18, Robert Latest <boblatest(a)googlemail.com> wrote: > Hello all, > > my question is already in the subject line. Also I think that I've got > the basics figured out, it's just that I don't understand the details. > > Essentially I want user A to run a specific X app as user B. So I > think I need to write a tiny shell script like this: > > #!/bin/sh > xhost +B > sudo -u B /path/to/app arg1 arg2 arg3 > xhost -B > > I need help with two things though: > > One, "xhost +B" doesn't work, contrary to the manpage. "xhost +" > works, granting X access to the entire Net, but who cares. This is > just a home computer. > > Two, I can't figure out for the life of me what the entry in > /etc/sudoers must look like to make sudo do what I want. > > Thanks, > robert > > Consider using the gksu package instead. -- Liam O'Toole Birmingham, United Kingdom -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/slrnhv5vtj.b3s.liam.p.otoole(a)dipsy.selfip.org |