From cca3cb31bb545e468039ca939cd3fdd099235a65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 16 Jul 2005 12:12:22 +0000 Subject: [PATCH] - create config that works (for me) - anygetty banner shown just once Changed files: anyterm.spec -> 1.6 --- anyterm.spec | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/anyterm.spec b/anyterm.spec index 8def04c..1a0aba9 100644 --- a/anyterm.spec +++ b/anyterm.spec @@ -2,7 +2,7 @@ Summary: Terminal emulator in a web browser Name: anyterm Version: 1.1.4 -Release: 0.3 +Release: 0.7 Epoch: 0 License: GPL Group: Networking/Daemons @@ -41,15 +41,32 @@ mv -f browser/.htaccess htaccess rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/httpd.conf,%{_pkglibdir},%{_mandir}/man8,%{_appdir}} -cat > $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/70_anyterm.conf < $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/70_anyterm.conf <<'END' LoadModule anyterm modules/%{name}.so Alias /%{name} "%{_appdir}" - anyterm_command '%{_sbindir}/anygetty --remotehost "Anyterm: %h"' + # hangs on login: +# anyterm_command '%{_sbindir}/anygetty --remotehost "Anyterm: %h"' + # works for me: + anyterm_command "USER=%u; exec /usr/bin/ssh ${USER:+$USER@}localhost" SetHandler anyterm + +# +# allow from all +# + + + AuthType Basic + AuthUserFile /etc/httpd/user + AuthGroupFile /etc/httpd/group + AuthName "AnyTerm" + require group anyterm + satisfy any + order allow,deny + # vim: filetype=apache ts=4 sw=4 et END @@ -64,9 +81,11 @@ rm -rf $RPM_BUILD_ROOT %post %service httpd restart -%banner %{name} <