Jacques-Olivier, Could you translate the error message into English? I'm guessing it says something like "the execution of the pre-session script returned a value of > 0".
Can you put a debug flag in the shell script ["-x" in Bourne] and look at the output? If the return code is > 0, it implies that it's never reaching the "exit 0" command; maybe it's choking on the "exec" statement just prior? For example, does /etc/opt/SUNWut/gdm/SunRayPreSession/SessReg exist and does it have the right permissions? Scott From: [email protected] [mailto:[email protected]] On Behalf Of Farcy Jacques-Olivier Sent: Friday, September 17, 2010 7:10 AM To: [email protected] Subject: EXTERNAL:[SunRay-Users] problem with SunRayPreSession Hi, I have been using Ubuntu 9.10 with Sunray 4.2 for a few weeks without serious problems for classroom here. Since one of my two servers crash, and for new sessions, i have a message that the session expired less than 10s after trying to be opened. I have this error message from .xsession-errors : /etc/opt/SUNWut/gdm/SunRayPreSession/Default[16]: PATH: restricted gdm[10666]: ERROR: session_child_run : l'exécution du script de pré-session a renvoyé une valeur > 0. Abandon. aborting... My SunRayPreSession/Default is : #!/bin/ksh -p # # Note that any setup should come before the sessreg command as # iterate over the helpers directory then execute last helper # that must be 'exec'ed for the pid to be correct (sessreg uses the parent # pid) # # Note that output goes into the .xsession-errors file for easy debugging # # ident "@(#)PreSessionDefault.sh 1.8 09/07/31 SMI" # # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # PATH="/usr/X11R6/bin:/opt/X11R6/bin:$PATH" for i in /etc/opt/SUNWut/gdm/SunRayPreSession/helpers/* do if [ -x $i ]; then $i fi done exec /etc/opt/SUNWut/gdm/SunRayPreSession/SessReg exit 0 I check /etc/shell and ksh is in there. Any idea ? Thanks in advance, Jacques-Olivier _______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
