[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: run program with another user how?



On Thu, 25 Nov 2010 17:52:23 +0100, Arthur Bela wrote:


> On 25 November 2010 16:59, Camaleón wrote:

(...)

>> gksu -u user -l -d xcalc

> $ gksu -u mm5-user -l -d xcalc
> No ask_pass set, using default!
> xauth: /tmp/libgksu-8oLjeq/.Xauthority STARTUP_ID:
> gksu/xcalc/10131-0-g_TIME24032970 cmd[0]: /usr/bin/sudo
> cmd[1]: -H
> cmd[2]: -S
> cmd[3]: -p
> cmd[4]: GNOME_SUDO_PASS
> cmd[5]: -u
> cmd[6]: mm5-user
> cmd[7]: --
> cmd[8]: xcalc
> buffer: -GNOME_SUDO_PASS-
> brute force GNOME_SUDO_PASS ended...
> Yeah, we're in...
> xauth: /tmp/libgksu-8oLjeq/.Xauthority xauth_env:
> /var/run/gdm/auth-for-gbor-Gb8eBC/database dir: /tmp/libgksu-8oLjeq
> $

Mmm... it works fine here:

test@debian:~$ gksu -u test2 -l -d xcalc
xauth: -a195bd96819834793354c82655505b8a
-
display: -:0.0-
final xauth: -a195bd96819834793354c82655505b8a
-
final display: -:0.0-
STARTUP_ID: gksu/xcalc/2002-0-debian_TIME0
gksu_context_run: buf: -Contraseña: -
no password on keyring
DEBUG (run:after-pass) buf: -Contraseña: -
-EBUG (run:post-after-pass) buf: -
-EBUG (run:post-after-pass) buf: -gksu: waiting
-EBUG (gksu: waiting) buf: -gksu: waiting

And "xcalc" is launched.

I've noted you are using "sudo", but maybe you can try to enforce 
"su" (using "-w" modifier):

gksu -u mm5-user -l -d -w xcalc

Greetings,

-- 
Camaleón


Reply to: