Rgds,
Mat
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/
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
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.
> 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
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'