Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Fedora 14

i can run a program with another user with:

(command before): xhost local:transmission-user

the command: sudo -u transmission-user -- /usr/bin/transmission-gtk &

from the gnome-terminal.


echo -e '#!/usr/bin/env xdg-open\n\n[Desktop Entry]\nVersion=1.0\nType=Application\nTerminal=true\nIcon[en_US]=gdu-encrypted-lock\nName[en_US]=transmission-user\nExec=sudo -u transmission-user -- /usr/bin/transmission-gtk &\nName=transmission-user\nIcon=gdu-encrypted-lock' > transmission-user.desktop chmod +x transmission-user.desktop

it doesn't work, if i put the command in a .desktop file.


share|improve this question
just to be sure: you made sure you don't need to type a pasword? otherwise you'd want to use something like gksu - or visudo... – iiegn Feb 8 '11 at 17:58
i don't need password because this: – LanceBaynes Feb 8 '11 at 18:05


Exec=sudo -u username -- /usr/bin/xeyes &


Exec=sudo -u username -- /usr/bin/xeyes

worked for me. (remove the "&" at the end of the Exec line)

share|improve this answer
Its not working in ubuntu 14.04.02 LTS for me.. – Arul Jul 8 '15 at 15:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .