[X2Go-Dev] [X2Go-User] Unable to open a session when default shell is /bin/tcsh

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Wed Jul 25 22:39:26 CEST 2012


Hi Seba,

(...diverting this thread to the x2go-dev mailing list...)

On Mi 25 Jul 2012 17:24:53 CEST sebastien seba wrote:

> When a user have /bin/tcsh for default shell,
> this user unable open session on centos 6.3 and x2goserver
>
> The error message is “connection failed
> export: command not found.”

There is no workaround, it is (still) a bug in x2goclient and also was  
a bug in python-x2go.

The bug in python-x2go has been fixed with this commit:
http://code.x2go.org/gitweb?p=python-x2go.git;a=commitdiff;h=588ba614baf0ba689a9ec6870284bcd02b4469ae

The bug in x2goclient is the same and should be fixable with something like

diff --git a/sshprocess.cpp b/sshprocess.cpp
index e8f0ea6..06de599 100644
--- a/sshprocess.cpp
+++ b/sshprocess.cpp
@@ -130,7 +130,8 @@ void SshProcess::tunnelLoop()

  void SshProcess::startNormal(const QString& cmd)
  {
-    masterCon->addChannelConnection(this, cmd);
+    QString shcmd = "sh -c \""+cmd+"\"";
+    masterCon->addChannelConnection(this, shcmd);
       
connect(masterCon,SIGNAL(stdOut(SshProcess*,QByteArray)),this,SLOT(slotStdOut(SshProcess*,QByteArray)));
      connect(masterCon,SIGNAL(channelClosed(SshProcess*)),  
this,SLOT(slotChannelClosed(SshProcess*)));
  }

However, I am not a C++ coder and the above is not correct. Alex, can  
you take a look at this? Or Mihai?

Thanks guys,
Mike



-- 

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20120725/d0473d01/attachment.pgp>


More information about the x2go-dev mailing list