Farcy Jacques-Olivier schrieb:
P.S.M Swamiji a écrit :
Farcy Jacques-Olivier wrote:

I use SRSS 4.2 on Ubuntu 9.10 for a classroom in a university.
I am trying with utpolicy to desactivate hotdesking sessions for non-card access.


Maybe i should explain a little bit more :

I want that students use their normal login/passwd to open ubuntu session (non-card) with gdm and i don't want to have hotdesking feature applied on this. Because if "something or somebody" close the session (like a network or electric cut), when the DTUs comes up again, the student's session is still ed open.


Ah, that clarifies things. Usually 'hotdesking' refers to mobile sessions, i.e. that a session can be disconnected from its initial client and resumed on any client. You configuration already disallows this for non-card sessions.

You want user sessions to be ended when a DTU is disconnected. This does not happen automatically for Sun Ray session. Most people wouldn't like losing their unsaved work for any network hiccup. But when sessions continue to run, there should be a way to reconnect to them - otherwise there is no way to log out or otherwise end them except having an administrator kill the session from outside.

For this reason SRSS does not offer a built-in facility to disable 'reconnectability'.

But you can achieve the effect you want by running a utaction(1) process for every session that terminates the session upon disconnect. You should consider to use a non-zero timeout, so that very short accidental disconnects don't terminate the session right away.

The best place to do this is probably to place a shell scriptlet in the xinitrc.d directory which runs
    /opt/SUWNut/bin/utaction -e -i -d "kill $$"  [-t <timeout>] &
(here $$ should resolve to the PID of the session process sourcing the xinitrc.d scripts)

But i want that card users would be able to keep the hotdesking ... (for the administrators or teachers with cards)


For this your scriptlet need to check the session token ($SUN_SUNRAY_TOKEN) before launching the utaction. If the token starts with "pseudo.", then it is a non-card session.

Do you think it is possible ?


Yes, but you need to install your own script to do it.

HTH

- Jörg Barfurth

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

Reply via email to