Well,

I made a mistake, i made a lot of tests when i tried to make the command utwho working, and i changed the fist line of Default file :
#!/bin/ksh -p

I replace it with the working one :
#!/etc/alternativ/ksh -p

It works now.

Thanks,

Jacques-Olivier


Le 17/09/2010 16:10, Farcy Jacques-Olivier a écrit :
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

Reply via email to