Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

logout script

141 views
Skip to first unread message

ki_chi_saga

unread,
Nov 11, 2009, 4:58:46 AM11/11/09
to
Hi,
is there really noway to have a script run logging out from JDS if
S10's default login manager (dt-login) is used?
Have searched the net for the last three days but unsuccessfully find
an answer to this.
lots of people ask, but no conclusive anwer.


Rgds,
Mat

Martin Paul

unread,
Nov 11, 2009, 9:16:19 AM11/11/09
to
ki_chi_saga wrote:
> is there really noway to have a script run logging out from JDS if
> S10's default login manager (dt-login) is used?

I think you're out of luck. I've looked for the same in the past, but
couldn't find a solution to replace CDE's sessionetc/sessionexit. Look
at "How to Set Up the ssh-agent Command to Run Automatically in CDE" in:

http://docs.sun.com/app/docs/doc/816-4557/sshuser-15?a=view

Even Sun doesn't seem to have found a way to start/stop a process
automatically on JDS login/logout, while it's easily possible in CDE.

mp.
--
SysAdmin | Institute of Scientific Computing, University of Vienna
PCA | Analyze, download and install patches for Solaris
| http://www.par.univie.ac.at/solaris/pca/

ki_chi_saga

unread,
Nov 11, 2009, 9:42:05 AM11/11/09
to

Funny that was exactly why I needed it ...., but I've already been
there
and what it says is basically "there is no way to have script run at
logout
using JDS and dt-login". I just had couln't belive it was true .....

> Even Sun doesn't seem to have found a way to start/stop a process
> automatically on JDS login/logout, while it's easily possible in CDE.

Well if they made gdm default login mgr. it would be ....

I've tried to switch to gdm according

http://projects.gnome.org/gdm/docs/2.20/solaris.html

but it failed. Enable'ing the gdm smf instance (svc:/application/gdm2-
login:default)
after having disabled the cde-login in smf ( svc:/application/gdm2-
login:default)

result in;

Nov 10 08:58:30 sjvlabb gdm[722]: gdm_slave_xioerror_handler: Fatal X
error - Restarting :0
Nov 10 08:58:35 sjvlabb gdm[747]: gdm_slave_xioerror_handler: Fatal X
error - Restarting :0
Nov 10 08:58:36 sjvlabb inetd[633]: Property 'name' of instance svc:/
application/x11/xvnc-inetd:default is missing, inconsistent or invalid
Nov 10 08:58:36 sjvlabb inetd[633]: Property 'proto' of instance svc:/
application/x11/xvnc-inetd:default is missing, inconsistent or invalid
Nov 10 08:58:36 sjvlabb inetd[633]: Invalid configuration for instance
svc:/application/x11/xvnc-inetd:default, placing in maintenance
Nov 10 08:58:40 sjvlabb gdm[755]: gdm_slave_xioerror_handler: Fatal X
error - Restarting :0
Nov 10 08:58:41 sjvlabb gdm[710]: Failed to start X server several
times in a short time period; disabling display :0

So switched back.

Thanks for your reply
Rgds,
Mat

Martin Paul

unread,
Nov 11, 2009, 10:08:40 AM11/11/09
to
ki_chi_saga wrote:
>> I think you're out of luck. I've looked for the same in the past, but
>> couldn't find a solution to replace CDE's sessionetc/sessionexit. Look
>> at "How to Set Up the ssh-agent Command to Run Automatically in CDE" in:
>>
>> http://docs.sun.com/app/docs/doc/816-4557/sshuser-15?a=view
>
> Funny that was exactly why I needed it ....

Years ago I proposed a modification to dtlogin (or whoever reads
login/password during GUI login) so that it would start ssh-agent and
add a default identity which uses the user's login password as passphrase.

Like that, no separate steps would be needed for the user to get
password-less access to all remote systems he wants via SSH - one more
step towards single-sign-on. Never happened, though.

Chris Ridd

unread,
Nov 11, 2009, 2:12:06 PM11/11/09
to
On 2009-11-11 15:08:40 +0000, Martin Paul <m...@par.univie.ac.at> said:

> ki_chi_saga wrote:
>>> I think you're out of luck. I've looked for the same in the past, but
>>> couldn't find a solution to replace CDE's sessionetc/sessionexit. Look
>>> at "How to Set Up the ssh-agent Command to Run Automatically in CDE" in:
>>>
>>> http://docs.sun.com/app/docs/doc/816-4557/sshuser-15?a=view
>>
>> Funny that was exactly why I needed it ....
>
> Years ago I proposed a modification to dtlogin (or whoever reads
> login/password during GUI login) so that it would start ssh-agent and
> add a default identity which uses the user's login password as
> passphrase.
>
> Like that, no separate steps would be needed for the user to get
> password-less access to all remote systems he wants via SSH - one more
> step towards single-sign-on. Never happened, though.

OpenSolaris starts/stops gnome-keyring when you log in/out, which acts
a bit like ssh-agent. (Except is even less well documented, and brain
dead when you've got several keys.)
--
Chris

Michael Tosch

unread,
Nov 17, 2009, 8:20:29 AM11/17/09
to

We have modified /usr/dt/config/Xinitrc.jds
to call the sessionexit from CDE:

#exec /usr/bin/gnome-session
/usr/bin/gnome-session
[ -x $HOME/.dt/sessions/sessionexit ] && $HOME/.dt/sessions/sessionexit

And an example for sessionexit:

cat $HOME/.dt/sessions/sessionexit
#!/bin/csh -f
if (-f ~/.logout) then
echo "${0}: sourcing .logout"
source ~/.logout
endif


--
echo imhcea\.lophc.tcs.hmo |
sed 's2\(....\)\(.\{5\}\)2\2\122;s1\(.\)\(.\)1\2\11g;1s;\.;::;2'

0 new messages