[Samba] Workaround found, .Xauthority and SMB,

This is a discussion on [Samba] Workaround found, .Xauthority and SMB, within the Samba forums, part of the Networking and Network Related category; Hi, Finally got this working!! I have found a potential Workaround to the following error: >/etc/X11/gdm/PreSession/...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-26-2004
Ben Ford - Bio-Logic Aqua Technologies
 
Posts: n/a
Default [Samba] Workaround found, .Xauthority and SMB,

Hi,

Finally got this working!!

I have found a potential Workaround to the following error:

>/etc/X11/gdm/PreSession/Default: Registering your session with wtmp
>and
> utmp
> /etc/X11/gdm/PreSession/Default: running: /usr/bin/X11/sessreg -a
>-w /var/log/wtmp -u /var/run/utmp -x "/var/gdm/:0.Xservers" -h "" -1
>":0"
>"test"
>Xlib: connection to ":0.0" refused by server
>Xlib: No protocol specified
>

Some prerequisites:
I'm running Fedora Core 1 ( stock install ) with pam_mount mounting my home
directory on the PDC.
I'm reluctantly using GDM ( not my favorite but it will do )
Last, I'm using KDE, but GNOME works too.

First, I followed suggestions from previous posts, and did a little tweaking
on my own, which include the following:

a) I've added the following to the user's .bash_profile:
export XAUTHORITY=/tmp/.Xauthority
export ICEAUTHORITY=/tmp/.ICEauthority

b) NOTE: gnome doesn't require this step.
I did some editing of my /usr/bin/startkde script to move all .kde and .kderc
etc... files OUT of the home directory. From what I can tell, limits in the
SMBFS are not allowing kde to start successfully. (sockets??)
This is a heavy workaround, but works nicely in our environment.
If you would like details on this fix let me know.

**Despite these changes, the above mentioned error was still appearing.**

**Here is what I've done:**

1) add the following to the file: /etc/X11/gdm/PreSession/Default

XHOST=`which xhost 2>/dev/null`
if [ "x$XHOST" != "x" ] ; then
echo "Executing xhost +localhost.."
exec "$XHOST" +localhost
fi

I think it's important to add this before the following line:
SESSREG=`which sessreg 2>/dev/null`
....


Essentially, I'm executing the following command: "xhost +localhost".
I used their conventions for running a command, hence the if statement etc...

2) I'm pretty sure you need to restart GDM.

3) now go ahead and log in. It will work perfectly!!!

I don't know enough about X to give you a complete explanation for the fix,
but using xhost in this fashion allows any user on the host "localhost" to
connect to the X server. Without it, the connection is refused, hence the
error you were getting.

I would gladly accept any feedback or comments on this fix.
I'm also very curious if anybody else tried running a GUI with their home
directory mounted via SMBFS or NFS?

I've attempted both and found SMBFS to be a adequate. This issue was the last
to get over. Now I must go through and refine different aspects
--
Ben Ford
Bio-Logic Aqua Technologies
5001 Lower River Rd
Grants Pass, OR 97526

800-FOR-MIST (367-6478)
ben@naturestears.com
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0