Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pam_xauth question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Epyon
l33t
l33t


Joined: 11 Sep 2003
Posts: 754
Location: NJ, USA

PostPosted: Sat Nov 20, 2004 4:54 pm    Post subject: pam_xauth question Reply with quote

Not sure if this is the right forum for this but...

After the last shadow update VNC stopped working. I was reading bug 69925 and saw this:
Quote:

notice that if PAM is enabled, DISPLAY/XAUTHORITY are not propogated ... you're supposed to setup the propogation of these vars yourself (gasp!) via pam_xauth


Now though DISPLAY is set in /etc/security/pam_env.conf and it is set incorrectly for remote X sessions. When you run VNC it tries to open the apps on :0.0 which fails.

If you remove this line
Code:
DISPLAY                DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY}

it starts working again.

There is a problem with this though. When using "su -" DISPLAY is not set. I could set it in .bashrc or whatever but it wouldn't always be correct especially if using VNC.

According to the comment in that bug report the DISPLAY variable is supposed to be set via pam_xauth. How would I go about getting pam_xauth to set that variable?
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Sun Nov 21, 2004 11:10 pm    Post subject: Reply with quote

same is just discussed here:
https://forums.gentoo.org/viewtopic.php?t=249744&highlight=pam+xauthority
Back to top
View user's profile Send private message
Epyon
l33t
l33t


Joined: 11 Sep 2003
Posts: 754
Location: NJ, USA

PostPosted: Mon Nov 22, 2004 7:40 am    Post subject: Reply with quote

My specific question wasn't asked or answered in that thread. For now I still have to manually set the DISPLAY variable when I su - to root in X if I want to start a graphical app.
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Mon Nov 22, 2004 9:59 am    Post subject: Reply with quote

Epyon wrote:
My specific question wasn't asked or answered in that thread.

sorry - just thought your question would fit there better, because the problem started for you infact of the same reason - X authority in PAM?
Epyon wrote:

For now I still have to manually set the DISPLAY variable when I su - to root in X if I want to start a graphical app.

i always had to do this anyway. also prior to the changes to the PAM config. hmm..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum