[Twisted-Python] SFTP Server sample
michal.mach at gmail.com
Tue Aug 23 21:14:25 EDT 2011
Are you getting the error "Operation not permitted" when you try to do
This can be caused by running the SFTP server under a user which can't
effective group and uid to 0 (uid of root user).
This is because when you login as user "foo" the server needs to execute all
commands as this user (e.g. when you upload a file this file should be owned
by the user "foo")
and therefore temporary changing to user "foo".
This is exactly what the default implementation of UnixConchUser wants to
do, but fails and therefore you got
On Tue, Aug 23, 2011 at 7:54 PM, Osborn Chan <ychan at quova.com> wrote:
> The sample code is working on my side, but I had a problem to list the
> files with permission issue.
> I guessed it may be a issue related to my server setting. However, it
> would be good if we have another person to test the code as well.
> On 8/23/11 6:21 AM, "Thijs Triemstra" <lists at collab.nl> wrote:
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA1
> >On 08/23/2011 01:10 AM, Osborn Chan wrote:
> >> Hi Michal,
> >> Thanks a lot!
> >> It is a very nice working example, and it is good for newbie as well.
> >> Regards,
> >> Osborn
> >I attached it to http://twistedmatrix.com/trac/ticket/5237 so it could
> >be included in the documentation.
> >-----BEGIN PGP SIGNATURE-----
> >Version: GnuPG v1.4.11 (GNU/Linux)
> >-----END PGP SIGNATURE-----
> >Twisted-Python mailing list
> >Twisted-Python at twistedmatrix.com
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python