<div dir="ltr"><div style>Hello dear mates.</div><div style><br></div><div style>Just had a problem that when a user moves or copy a file from the mounted sshfs dir to a shared directory on the x2goserver, if this is a shared folder for a group with respective ACL's we've got a problem with the final permissions.</div>

<div style><br></div><div style>The easy way to solve this is to change the x2gomountdirs to include the umask param.</div><div style><br></div><div style>My diff is below. </div><div style>Is there any other way ( missed /etc/x2go/* param  that i've missed to solve this problem?</div>

<div style><br></div><div style><br></div><div style><div>34,35d33</div><div>< my $umask="0117";</div><div>< </div><div>277c275</div><div><               $msg = "sshfs $code_conv -o idmap=user,uid=`id -u`,gid=`id -g`,umask=$umask,ServerAliveInterval=300,Cipher=blowfish,IdentityFile=$key,UserKnownHostsFile=$key.ident \"$user\"\@$host:\"@dirs[$i]\" \"$mntpath\" -p $port";</div>

<div>---</div><div>>               $msg = "sshfs $code_conv -o idmap=user,uid=`id -u`,gid=`id -g`,ServerAliveInterval=300,Cipher=blowfish,IdentityFile=$key,UserKnownHostsFile=$key.ident \"$user\"\@$host:\"@dirs[$i]\" \"$mntpath\" -p $port";</div>

<div>280c278</div><div><               if (system("sshfs  $code_conv -o idmap=user,uid=`id -u`,gid=`id -g`,umask=$umask,ServerAliveInterval=300,Cipher=blowfish,IdentityFile=$key,UserKnownHostsFile=$key.ident \"$user\"\@$host:\"@dirs[$i]\" \"$mntpath\" -p $port 2>>~/mounts.log")==0)</div>

<div>---</div><div>>               if (system("sshfs  $code_conv -o idmap=user,uid=`id -u`,gid=`id -g`,ServerAliveInterval=300,Cipher=blowfish,IdentityFile=$key,UserKnownHostsFile=$key.ident \"$user\"\@$host:\"@dirs[$i]\" \"$mntpath\" -p $port 2>>~/mounts.log")==0)</div>

<div><br></div></div><br clear="all"><div><p dir="ltr">--</p><p dir="ltr">Com os melhores cumprimentos.</p><p dir="ltr">Helmer Teles <br><a href="http://hteles.wordpress.com/" target="_blank">http://hteles.wordpress.com</a><br>

</p><p dir="ltr">"Sent from my Linux Device"</p><p dir="ltr">Please don't send me proprietary file formats, use ISO standard ODF instead (ISO/IEC 26300)</p><br><br>       .-.                   G N U        <br>

       /v\                 L I N U X      <br>      // \\                   ---------      <br>     /( _ )\        May The Source Be <br>    ^^     ^^             With You...  </div>
</div>