Are you getting the error &quot;Operation not permitted&quot; when you try to do directory listing?<div>This can be caused by running the SFTP server under a user which can&#39;t change his</div><div>effective group and uid to 0 (uid of root user).</div>
<div>This is because when you login as user &quot;foo&quot; the server needs to execute all subsequent</div><div>commands as this user (e.g. when you upload a file this file should be owned by the user &quot;foo&quot;)</div>
<div>and therefore temporary changing to user &quot;foo&quot;.</div><div>This is exactly what the default implementation of UnixConchUser wants to do, but fails and therefore you got </div><div>that error.</div><div><br></div>
<div>Regards,</div><div>Michal Mach<br><div><br><br><div class="gmail_quote">On Tue, Aug 23, 2011 at 7:54 PM, Osborn Chan <span dir="ltr">&lt;<a href="mailto:ychan@quova.com">ychan@quova.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
FYI:<br>
<br>
The sample code is working on my side, but I had a problem to list the<br>
files with permission issue.<br>
I guessed it may be a issue related to my server setting. However, it<br>
would be good if we have another person to test the code as well.<br>
<br>
Thanks<br>
<div><div></div><div class="h5"><br>
On 8/23/11 6:21 AM, &quot;Thijs Triemstra&quot; &lt;<a href="mailto:lists@collab.nl">lists@collab.nl</a>&gt; wrote:<br>
<br>
&gt;-----BEGIN PGP SIGNED MESSAGE-----<br>
&gt;Hash: SHA1<br>
&gt;<br>
&gt;On 08/23/2011 01:10 AM, Osborn Chan wrote:<br>
&gt;&gt; Hi Michal,<br>
&gt;&gt;<br>
&gt;&gt; Thanks a lot!<br>
&gt;&gt; It is a very nice working example, and it is good for newbie as well.<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt;<br>
&gt;&gt; Osborn<br>
&gt;<br>
&gt;I attached it to <a href="http://twistedmatrix.com/trac/ticket/5237" target="_blank">http://twistedmatrix.com/trac/ticket/5237</a> so it could<br>
&gt;be included in the documentation.<br>
&gt;<br>
&gt;Cheers,<br>
&gt;<br>
&gt;Thijs<br>
&gt;-----BEGIN PGP SIGNATURE-----<br>
&gt;Version: GnuPG v1.4.11 (GNU/Linux)<br>
&gt;<br>
&gt;iEYEARECAAYFAk5TqU0ACgkQBRbMGagbo3lrAgCfR7lAPz5f+4J/R5bZmkFJA/iB<br>
&gt;cW4An2Iqi+CGLZftFV+JZlh/R+UmsAkC<br>
&gt;=WET7<br>
&gt;-----END PGP SIGNATURE-----<br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;Twisted-Python mailing list<br>
&gt;<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
&gt;<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br></div></div>