Where/how is $DISPLAY set when connecting with XDMCP?
My "problem" is that it's set correctly and I want to break it, but can't figure out where it's getting set in the first place.
I can see several places where $DISPLAY is referenced but at the point that the dollar sign is in front it's already an environment variable(I think).
I thought this command might help "
but it just hangs when run as root.
I tried renaming /usr/openwin/bin/xauth to a completely different name, deleted my .Xauthority file and I still get a new .Xauthority file created upon XDMCP login. So I don't understand what's happening.
Not sure it matters but I'm using CDE as my desktop.
Thanks,
Gary
Last edited by Scrutinizer; 07-10-2013 at 07:04 PM..
Reason: code tags
Hi All:
An elementary Unix Question,
How can i set the display number and run a program in that display.
If i type the name of the executable the program opens in the console(display number 0), however, i want it to open in another display number. How can i do that.
Appreciate the help... (2 Replies)
hi, i am on mandrake 6.0, shell of root user is bash.
okay, i did the below
#display=localhost.localdomain:0.0
#export display
#xhost +localhost.localdomain
system replies xhost added..
i did a set and there was an entry there..
now i want to install oracle, so did a ./runInstaller
... (2 Replies)
Hi,
I used exceed and putty in the past to HP server with no problem to make
'set DISPLAY' work on my desktop. However now I have Solaris 9 on Sun server 480 and I only have putty. I can't bring the X window (eg xclock, etc) to my desktop.
I tried X11Fowarding, xhost, and so on, it doesn't... (5 Replies)
I have a batch programme which will load the Spreadsheet into database..
When the DISPLAY is set and X11 window server is running, there is no issue in reading the spreadsheet and loading into database without lauching UI.
But if the display is not set, then there is an issue... Any ideas... (3 Replies)
Hi All,
I use "export DISPLAY=same_host:0.0" to set my export DISPLAY and it is working fine for me..
Problem here is I have developed a script for which i should run export DISPLAY prior to running my script....
so my script should check whether export DISPLAY is set or not.. if... (6 Replies)
Hi,
i got the following error when i tried to access the cygwin x server from a windows XP PC.
"xdmcp fatal error session failed session 23 failed for display"
Alternatively, when i tried to access the same Cygwin X Server from another windows XP PC which is on a different LAN... (3 Replies)
Hi all,
Our users use Putty on Windows servers to log on to UNIX via SSH and run GUI applications. Is there a way to automatically get the display numbers from xming or Exceed (that are running on Windows) to set the DISPLAY var properly on UNIX? X11 forwarding is not an option.
The closest I... (3 Replies)
when i am connecting to AIX machine from Windows XP through Xmanager am getting dots per inch problem and here we are connecting to AIX machine using X Server virtual frame buffer . Please set 90x90 dots per inch to X Server virtual frame buffer. (10 Replies)
Hi,
When i invoke DBCA as oracle user , i get following
usircd01:KAM:/opt/oracle10/product/10.2.0/bin>./dbca
DISPLAY not set.
Set DISPLAY environment variable, then re-run.
usircd01:KAM:/opt/oracle10/product/10.2.0/bin>echo $ORACLE_SID CCE ... (6 Replies)
Discussion started by: Maddy123
6 Replies
LEARN ABOUT CENTOS
pam_xauth
PAM_XAUTH(8) Linux-PAM Manual PAM_XAUTH(8)NAME
pam_xauth - PAM module to forward xauth keys between users
SYNOPSIS
pam_xauth.so [debug] [xauthpath=/path/to/xauth] [systemuser=UID] [targetuser=UID]
DESCRIPTION
The pam_xauth PAM module is designed to forward xauth keys (sometimes referred to as "cookies") between users.
Without pam_xauth, when xauth is enabled and a user uses the su(1) command to assume another user's privileges, that user is no longer able
to access the original user's X display because the new user does not have the key needed to access the display. pam_xauth solves the
problem by forwarding the key from the user running su (the source user) to the user whose identity the source user is assuming (the target
user) when the session is created, and destroying the key when the session is torn down.
This means, for example, that when you run su(1) from an xterm session, you will be able to run X programs without explicitly dealing with
the xauth(1) xauth command or ~/.Xauthority files.
pam_xauth will only forward keys if xauth can list a key connected to the $DISPLAY environment variable.
Primitive access control is provided by ~/.xauth/export in the invoking user's home directory and ~/.xauth/import in the target user's home
directory.
If a user has a ~/.xauth/import file, the user will only receive cookies from users listed in the file. If there is no ~/.xauth/import
file, the user will accept cookies from any other user.
If a user has a .xauth/export file, the user will only forward cookies to users listed in the file. If there is no ~/.xauth/export file,
and the invoking user is not root, the user will forward cookies to any other user. If there is no ~/.xauth/export file, and the invoking
user is root, the user will not forward cookies to other users.
Both the import and export files support wildcards (such as *). Both the import and export files can be empty, signifying that no users are
allowed.
OPTIONS
debug
Print debug information.
xauthpath=/path/to/xauth
Specify the path the xauth program (it is expected in /usr/X11R6/bin/xauth, /usr/bin/xauth, or /usr/bin/X11/xauth by default).
systemuser=UID
Specify the highest UID which will be assumed to belong to a "system" user. pam_xauth will refuse to forward credentials to users with
UID less than or equal to this number, except for root and the "targetuser", if specified.
targetuser=UID
Specify a single target UID which is exempt from the systemuser check.
MODULE TYPES PROVIDED
Only the session type is provided.
RETURN VALUES
PAM_BUF_ERR
Memory buffer error.
PAM_PERM_DENIED
Permission denied by import/export file.
PAM_SESSION_ERR
Cannot determine user name, UID or access users home directory.
PAM_SUCCESS
Success.
PAM_USER_UNKNOWN
User not known.
EXAMPLES
Add the following line to /etc/pam.d/su to forward xauth keys between users when calling su:
session optional pam_xauth.so
IMPLEMENTATION DETAILS
pam_xauth will work only if it is used from a setuid application in which the getuid() call returns the id of the user running the
application, and for which PAM can supply the name of the account that the user is attempting to assume. The typical application of this
type is su(1). The application must call both pam_open_session() and pam_close_session() with the ruid set to the uid of the calling user
and the euid set to root, and must have provided as the PAM_USER item the name of the target user.
pam_xauth calls xauth(1) as the source user to extract the key for $DISPLAY, then calls xauth as the target user to merge the key into the
a temporary database and later remove the database.
pam_xauth cannot be told to not remove the keys when the session is closed.
FILES
~/.xauth/import
XXX
~/.xauth/export
XXX
SEE ALSO pam.conf(5), pam.d(5), pam(8)AUTHOR
pam_xauth was written by Nalin Dahyabhai <nalin@redhat.com>, based on original version by Michael K. Johnson <johnsonm@redhat.com>.
Linux-PAM Manual 09/19/2013 PAM_XAUTH(8)