I found this happening last night, for root only. .xsession.errors showed that root could not find /usr/bin/env (although normal users were fine)

I fixed this changing /usr/bin/env (which is a symlink) to /bin/env

It also failed running the command "default", again for root only. This was fixed by choosing session, and selecting gnome, then making it the default.

I also took that opportunity to path out the 64 bit version of libut_c.so so I would stop gettting th LD_PRELOAD errors.



Bob Doolittle wrote:
[EMAIL PROTECTED] wrote:
ok, i've found the solution

in the file

/etc/X11/xinit/xinitrc.d/0100.SUNWut

this line is not giving a nice $command var to Xsession

..
command="/usr/bin/env LD_PRELOAD=libc_ut.so $command"
..

i just commented that line and it worked.


This is a known bug: 6464439 "Xsession errs stop
login on SRSS 3.1.1 on RHAS4U3, 2.6SMP kernel".
It is planned to be fixed before 3.1.1 is finally
released.

The workaround you have applied may cause audio to
not work.  The workaround listed in the bug report
is below.  Please try applying this and let us
know if it works for you (it would be great if you
could test audio also - play an MP3 or something).

Workaround:

              if [[ $OS == "Linux" ]]; then
                  LD_PRELOAD=libc_ut.so
                  export LD_PRELOAD
+
+                 # replicate custom and default code
+                 # from /etc/X11/gdm/Xsession
+                 if [ "x$command" = "xcustom" ] ; then
+                   if [ -x "$HOME/.xsession" ]; then
+                     command="$HOME/.xsession"
+                   else
+ echo "$0: Cannot find ~/.xsession will try the default session"
+                     command="default"
+                   fi
+                 fi
+                 if [ "x$command" = "xdefault" ] ; then
+                   if [ -x "$HOME/.Xclients" ]; then
+                     command="$HOME/.Xclients"
+                   elif [ -x /etc/X11/xinit/Xclients ]; then
+                     command="/etc/X11/xinit/Xclients"
+                   elif [ -x /etc/X11/Xclients ]; then
+                     command="/etc/X11/Xclients"
+                   else
+                     echo "$0: Cannot find Xclients"
+                     # FIXME: kind of an evil failsafe
+                     command="xsm"
+                   fi
+                 fi
+
                  # modify command var from Xsession to add
                  # /usr/bin/env prefix so that LD_PRELOAD gets
                  # set again after set-gid nobody ssh-agent runs

-Bob

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to