> 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...@localhost /path/to/app arg1 arg2 arg3 but this one feels like overkill. -- Cheers, Clive (end of message) -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100518192058.ga3...@rimmer.esmertec.com