Are you getting the error "Operation not permitted" when you try to do directory listing?<div>This can be caused by running the SFTP server under a user which can'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 "foo" 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 "foo")</div>
<div>and therefore temporary changing to user "foo".</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"><<a href="mailto:ychan@quova.com">ychan@quova.com</a>></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, "Thijs Triemstra" <<a href="mailto:lists@collab.nl">lists@collab.nl</a>> wrote:<br>
<br>
>-----BEGIN PGP SIGNED MESSAGE-----<br>
>Hash: SHA1<br>
><br>
>On 08/23/2011 01:10 AM, Osborn Chan wrote:<br>
>> Hi Michal,<br>
>><br>
>> Thanks a lot!<br>
>> It is a very nice working example, and it is good for newbie as well.<br>
>><br>
>> Regards,<br>
>><br>
>> Osborn<br>
><br>
>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>
>be included in the documentation.<br>
><br>
>Cheers,<br>
><br>
>Thijs<br>
>-----BEGIN PGP SIGNATURE-----<br>
>Version: GnuPG v1.4.11 (GNU/Linux)<br>
><br>
>iEYEARECAAYFAk5TqU0ACgkQBRbMGagbo3lrAgCfR7lAPz5f+4J/R5bZmkFJA/iB<br>
>cW4An2Iqi+CGLZftFV+JZlh/R+UmsAkC<br>
>=WET7<br>
>-----END PGP SIGNATURE-----<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>
<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>