tag 521307 + patch
thanks

Hi.

Below is a patch to configure sge qrsh/qlogin to use ssh by default.

For password-less logins, all a user has to do is generate/distribute
ssh keys (or the admin configures host-based authentification).

We've tested this patch and it works for us.

Another modification is necessary to make SGE_* environment
variables visible during an interactive job session,
we will open a separate bug for that later.

commit 82c0e07b62e12ed575faaf95b97d8171ff000a00
Author: Mario Lang <ml...@tugraz.at>
Date:   Mon Aug 24 14:36:28 2009 +0200

    Fix for Bug#521307

    Configure ssh for interactive jobs (qrsh and qlogin) by default.
    Recommends openssh-{client,server} in the appropriate places.

    A wrapper around ssh is required for qlogin, add that as well.

diff --git a/debian/configuration b/debian/configuration
index 9696dd8..c685cd2 100644
--- a/debian/configuration
+++ b/debian/configuration
@@ -43,3 +43,9 @@ auto_user_default_project none
 auto_user_delete_time  86400
 delegated_file_staging false
 reprioritize           0
+rlogin_daemon          /usr/sbin/sshd -i
+rlogin_command         /usr/bin/ssh
+qlogin_daemon          /usr/sbin/sshd -i
+qlogin_command         /usr/share/gridengine/qlogin-wrapper
+rsh_daemon             /usr/sbin/sshd -i
+rsh_command            /usr/bin/ssh
diff --git a/debian/control b/debian/control
index 37e0412..057b8b1 100644
--- a/debian/control
+++ b/debian/control
@@ -37,6 +37,7 @@ Package: gridengine-client
 Architecture: i386 amd64 sparc powerpc ia64
 Depends: ${shlibs:Depends}, ${misc:Depends}, gridengine-common
 Suggests: gridengine-qmon
+Recommends: openssh-client
 Description: Utilities for Grid Engine queue management
  Grid Engine is software that facilitates "distributed resource
  management" (DRM).  Far more than just simple load-balancing tools or
@@ -107,6 +108,7 @@ Package: gridengine-exec
 Architecture: i386 amd64 sparc powerpc ia64
 Replaces: gridengine-master (<< 6.2-3)
 Depends: ${shlibs:Depends}, ${misc:Depends}, gridengine-common, c-shell | tcsh
+Recommends: openssh-server
 Description: Distributed resource management - Execution Server
  Grid Engine is software that facilitates "distributed resource
  management" (DRM).  Far more than just simple load-balancing tools or
diff --git a/debian/gridengine-client.dirs b/debian/gridengine-client.dirs
index 415f082..a2e1ca0 100644
--- a/debian/gridengine-client.dirs
+++ b/debian/gridengine-client.dirs
@@ -1 +1,2 @@
 /usr/bin
+/usr/share/gridengine
diff --git a/debian/qlogin.wrapper b/debian/qlogin.wrapper
new file mode 100755
index 0000000..1d5cb8d
--- /dev/null
+++ b/debian/qlogin.wrapper
@@ -0,0 +1,2 @@
+#!/bin/sh -e
+ssh -p $2 $1
diff --git a/debian/rules b/debian/rules
index 533a748..67ddc7a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -104,8 +104,9 @@ binary-indep: build install
 	install -m 644 $(CURDIR)/debian/configuration $(CURDIR)/debian/gridengine-common/usr/share/gridengine/default-configuration
 	install -m 644 $(CURDIR)/debian/bootstrap $(CURDIR)/debian/gridengine-common/usr/share/gridengine/default-bootstrap
 	install -m 755 $(CURDIR)/debian/scripts/init_cluster $(CURDIR)/debian/gridengine-common/usr/share/gridengine/scripts/init_cluster
-	# Install wrapper script
+	# Install wrapper scripts
 	install -m 775 $(CURDIR)/debian/gridengine-client.wrapper $(CURDIR)/debian/gridengine-common/usr/share/gridengine/gridengine-wrapper
+	install -m 775 $(CURDIR)/debian/qlogin.wrapper $(CURDIR)/debian/gridengine-client/usr/share/gridengine/qlogin-wrapper
 	dh_installman -i
 	dh_installdebconf -i
 	dh_link -i
-- 
Regards,
      Mario Lang

Graz University of Technology        mailto:ml...@tugraz.at
Department Computing               http://www.ZID.TUGraz.at/lang/
Phone: +43 (0) 316 / 873 - 6897

Reply via email to