Are you getting the error "Operation not permitted" when you try to do directory listing? This can be caused by running the SFTP server under a user which can't change his 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 subsequent 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 that error.
Regards, Michal Mach On Tue, Aug 23, 2011 at 7:54 PM, Osborn Chan <[email protected]> wrote: > FYI: > > 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. > > Thanks > > On 8/23/11 6:21 AM, "Thijs Triemstra" <[email protected]> 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. > > > >Cheers, > > > >Thijs > >-----BEGIN PGP SIGNATURE----- > >Version: GnuPG v1.4.11 (GNU/Linux) > > > >iEYEARECAAYFAk5TqU0ACgkQBRbMGagbo3lrAgCfR7lAPz5f+4J/R5bZmkFJA/iB > >cW4An2Iqi+CGLZftFV+JZlh/R+UmsAkC > >=WET7 > >-----END PGP SIGNATURE----- > > > >_______________________________________________ > >Twisted-Python mailing list > >[email protected] > >http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > > > _______________________________________________ > Twisted-Python mailing list > [email protected] > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python >
_______________________________________________ Twisted-Python mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
