Sponsored Content
Operating Systems Linux Launch application in gnome session of another user. Post 302222210 by redoubtable on Wednesday 6th of August 2008 08:33:12 AM
Old 08-06-2008
If X is running on the machine where you ssh to:

Code:
DISPLAY=:0.0 XAUTHORITY=/home/user_running_X_on_the_display/.Xauthority your-program

 

7 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

making the application session independent

Hi all, I am actually new to Unix programming and this is my first question to this forum. I have an application and i want it to run independent of the command shell. For example, i run the application from a telnet session. But when i close my session, application is terminated. I just... (2 Replies)
Discussion started by: bokhari_jawad
2 Replies

2. Solaris

I am not able to login in gnome session and java session in Sun solaris 9& 10

I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies

3. Shell Programming and Scripting

launch vnc session from unix shell script

Hi All, OS:AIX 64 bits Would like to know what is the command to launch vnc session from unix shell script so that Reports server is started from vnc session which should be launched from within the shell script. Thanks for your time! Regards, (0 Replies)
Discussion started by: a1_win
0 Replies

4. UNIX for Dummies Questions & Answers

Launch application in background

Hi, I would launch a script in background. I've tried in this way: But it doesn't work. The sh launch a java application. How can I solve? Thanks, bye bye. (7 Replies)
Discussion started by: abdujaparov
7 Replies

5. Debian

Gnome session reverts back to gdm on login.

Hi everyone. I just had a quick problem. I'm not too familiar with linux yet, otherwise I'd have this figured out by now. I recently did the Debian 5lenny7 update with the standard debian update manager. After getting all installed and rebooted, I tried to login to my account again. Every... (3 Replies)
Discussion started by: runfaj
3 Replies

6. Shell Programming and Scripting

Cannot get terminal application to launch with a graphical launcher when successful in terminal

I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Discussion started by: Huitzilopochtli
16 Replies

7. UNIX for Beginners Questions & Answers

How are environment variables defined in a Gnome terminal session?

Hello... and thanks in advance for any help anyone can offer me with my question! I'm hoping someone will have a little patience with me and walk me through this! I'm trying to understand a user login process on Centos 7 and I've gotten a bit confused trying to figure out when/how a Gnome... (4 Replies)
Discussion started by: bodisha
4 Replies
SUX(1)								   User Commands							    SUX(1)

NAME
sux - wrapper around su which will transfer your X credentials SYNOPSIS
sux [OPTS] [-] [[username] [ARGS]] suxterm [OPTS] [-] [username] DESCRIPTION
sux is a wrapper around the standard su command which will transfer your X credentials to the target user. Note, suxterm forces ARGS to be 'xterm', and will try to launch an xterminal window. QUICK CALLING
'sux user' and 'sux - user' behave just like su but transfer $DISPLAY and the X cookies. OPTIONS
--untrusted To generate an untrusted cookie, see 'xauth'. --timout <period> To generate a temporary cookie for <period> seconds, see 'xauth'. -m,-p --preserve-environment In this case sux will override XAUTHORITY to the so that xauth does not try to use the original user's .Xauthority file (which it obviously could not do anyway due to access rights). --no-cookies Just transfer DISPLAY, not the cookies. You could do this if you have already transfered the cookies in a previous invocation of sux. --copy-cookies Copy the cookies using xauth. This is the default method (and only method most of the time). --use-xauthority Instead of transfering the cookies, set the XAUTHORITY environment variable to access the original .Xauthority file. There's a cou- ple caveats with this method. First, due to the access right issues it's only usable by root. But even then it may not work if the .Xauthority file is accessed via NFS, e.g. if the home directories are on NFS (note that this is quite dangerous already since your cookies will travel unencrypted over the network). Then, if root runs commands like xauth add/remove, the .Xauthority's ownership will belong to him. This will leave the original user in trouble as he will no longer be able to access X! So only use this option with great care. Finally, this method does not work if you also want to use '--untrusted' or '--timeout'. --display specify which display to use (in case of having more than one available). AUTHOR
Originally written by Francois Gouget <fgouget@free.fr> Manpage written by Millis Miller <millis@faztek.org> REPORTING BUGS
Report bugs to <millis@faztek.org>. COPYRIGHT
Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
su (1), xauth (1) sux 1.0 Sept 2003 SUX(1)
All times are GMT -4. The time now is 09:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy