From ayuanx@gmail.com  Tue Sep 15 04:03:33 2015
Received: (at submit) by bugs.x2go.org; 15 Sep 2015 02:03:36 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
	HTML_MESSAGE,T_DKIM_INVALID autolearn=ham version=3.3.2
Received: from mail-ig0-f182.google.com (mail-ig0-f182.google.com [209.85.213.182])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id A41693BC4A
	for <submit@bugs.x2go.org>; Tue, 15 Sep 2015 04:03:32 +0200 (CEST)
Received: by igbkq10 with SMTP id kq10so6048841igb.0
        for <submit@bugs.x2go.org>; Mon, 14 Sep 2015 19:03:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=+5k7S67awLWOnH/yV8tCbcTXDmwAGYRcId+Ut9q5unQ=;
        b=rjZupM79KuzLLl79XAMtzgUyqQqgxpIemkj+raithU5LmQ0rH1xks/m6KZDWZGWUm/
         rofh9j3fTL9vlnFqthnuDQThHdMGxADw5Js6Q74SX1F3UZS6huB5nKkRAp+8AFc2eC3m
         S1KsrEpui9mqmSa7ebrsExzjvbkcK6f1lRzJZGcW71OaKDwCcCWvm4Par5pXrCYc6m3d
         oScefyH9cfDEDsCxuFBDFYX6XxJ9xUEISmcxNjVdmeG8SKYXQ8mr/kD8X3ylDFU9X+yo
         qGO/v9Skn/1bj5+r3zor1rIK/sbAPnVTY4YBnr8xmT9oUkPQH287uLP34/maDVtPKNZA
         6lwg==
MIME-Version: 1.0
X-Received: by 10.50.225.66 with SMTP id ri2mr1524377igc.5.1442282611055; Mon,
 14 Sep 2015 19:03:31 -0700 (PDT)
Received: by 10.36.31.147 with HTTP; Mon, 14 Sep 2015 19:03:31 -0700 (PDT)
Date: Tue, 15 Sep 2015 12:03:31 +1000
Message-ID: <CAPuhghVKBTfFU70pNoZry-DRc9Ge+XsL4xF+MKL0yEqiWoEiUw@mail.gmail.com>
Subject: File sharing permission issue between Windows and Linux
From: Michael <ayuanx@gmail.com>
To: submit@bugs.x2go.org
Content-Type: multipart/alternative; boundary=001a1132f81eb2a3e5051fbf96c6

--001a1132f81eb2a3e5051fbf96c6
Content-Type: text/plain; charset=UTF-8

Package: (Windows client:) x2goclient-4.0.5.0-2015.07.31-setup.exe;
(Ubuntu server:) x2goserver_4.0.1.19-0~1064~ubuntu14.04.1
Version: see above

On Windows client, if file shareing directory is set under
"C:\Users\%USER%\", then it can be accessed on Linux server.
However, if file sharing directory on Windows client is set out of the
above scope (e.g. "C:\foobar"), then it can't be accessed on Linux server
due to lack of r/w permission.

For Example:
A) File sharing on Windows is set to "C:\Users\ayuanx\Test", notice the
permission is "drwx".

$ ll ~/media/disk/
total 8.0K
drwx------ 3 ayuanx ayuanx 4.0K Sep 15 11:27 ./
drwx------ 5 ayuanx ayuanx 4.0K Sep 15 11:27 ../
drwx------ 1 ayuanx ayuanx    0 Sep 15 11:28 _cygdrive_C_Users_ayuanx_Test/

$ ll ~/media/disk/_cygdrive_C_Users_ayuanx_Test/
total 4.0K
drwx------ 1 ayuanx ayuanx    0 Sep 15 11:28 ./
drwx------ 3 ayuanx ayuanx 4.0K Sep 15 11:27 ../
-rwx------ 1 ayuanx ayuanx    0 Sep 15 10:45 New Text Document.txt*

$ touch write_test.txt; ll
total 4.0K
drwx------ 1 ayuanx ayuanx    0 Sep 15 11:59 ./
drwx------ 3 ayuanx ayuanx 4.0K Sep 15 11:27 ../
-rwx------ 1 ayuanx ayuanx    0 Sep 15 10:45 New Text Document.txt*
-rw-r--r-- 1 ayuanx ayuanx    0 Sep 15 11:59 write_test.txt


B) File sharing on Windows is set to "C:\Temp", notice the permission is
"d", not accessible at all.

$ ll ~/media/disk/
total 8.0K
drwx------ 3 ayuanx ayuanx 4.0K Sep 15 10:46 ./
drwx------ 5 ayuanx ayuanx 4.0K Sep 15 10:46 ../
d--------- 1 ayuanx ayuanx    0 Sep 15 10:45 _cygdrive_C_Temp/

$ cd ~/media/disk/_cygdrive_C_Temp/
bash: cd: /home/ayuanx/media/disk/_cygdrive_C_Temp/: Permission denied

--001a1132f81eb2a3e5051fbf96c6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Package: (Windows client:) x2goclient-4.0.5.0-2015.07.31-s=
etup.exe;=C2=A0 (Ubuntu server:) x2goserver_4.0.1.19-0~1064~ubuntu14.04.1<b=
r>Version: see above<br><br>On Windows client, if file shareing directory i=
s set under &quot;C:\Users\%USER%\&quot;, then it can be accessed on Linux =
server.<br>However, if file sharing directory on Windows client is set out =
of the above scope (e.g. &quot;C:\foobar&quot;), then it can&#39;t be acces=
sed on Linux server due to lack of r/w permission.<br><br>For Example:<br>A=
) File sharing on Windows is set to &quot;C:\Users\ayuanx\Test&quot;, notic=
e the permission is &quot;drwx&quot;.<br><br>$ ll ~/media/disk/=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 <br>total 8.0K<br>drwx------ 3 ayuanx ayuanx 4.0K Sep 15 11:27 ./<br=
>drwx------ 5 ayuanx ayuanx 4.0K Sep 15 11:27 ../<br><span style=3D"color:r=
gb(255,0,0)">drwx------</span> 1 ayuanx ayuanx=C2=A0=C2=A0=C2=A0 0 Sep 15 1=
1:28 _cygdrive_C_Users_ayuanx_Test/<br><br>$ ll ~/media/disk/_cygdrive_C_Us=
ers_ayuanx_Test/<br>total 4.0K<br>drwx------ 1 ayuanx ayuanx=C2=A0=C2=A0=C2=
=A0 0 Sep 15 11:28 ./<br>drwx------ 3 ayuanx ayuanx 4.0K Sep 15 11:27 ../<b=
r>-rwx------ 1 ayuanx ayuanx=C2=A0=C2=A0=C2=A0 0 Sep 15 10:45 New Text Docu=
ment.txt*<br><br>$ touch write_test.txt; ll<br>total 4.0K<br>drwx------ 1 a=
yuanx ayuanx=C2=A0=C2=A0=C2=A0 0 Sep 15 11:59 ./<br>drwx------ 3 ayuanx ayu=
anx 4.0K Sep 15 11:27 ../<br>-rwx------ 1 ayuanx ayuanx=C2=A0=C2=A0=C2=A0 0=
 Sep 15 10:45 New Text Document.txt*<br>-rw-r--r-- 1 ayuanx ayuanx=C2=A0=C2=
=A0=C2=A0 0 Sep 15 11:59 write_test.txt<br><br><br>B) File sharing on Windo=
ws is set to &quot;C:\Temp&quot;, notice the permission is &quot;d&quot;, n=
ot accessible at all.<br><br>$ ll ~/media/disk/<br>total 8.0K<br>drwx------=
 3 ayuanx ayuanx 4.0K Sep 15 10:46 ./<br>drwx------ 5 ayuanx ayuanx 4.0K Se=
p 15 10:46 ../<br><span style=3D"color:rgb(255,0,0)">d---------</span> 1 ay=
uanx ayuanx=C2=A0=C2=A0=C2=A0 0 Sep 15 10:45 _cygdrive_C_Temp/<br><br>$ cd =
~/media/disk/_cygdrive_C_Temp/<br>bash: cd: /home/ayuanx/media/disk/_cygdri=
ve_C_Temp/: Permission denied<br><br><br></div>

--001a1132f81eb2a3e5051fbf96c6--

