Creating my own FTPRealm implementation fixed my problem, now I can upload.<br>It worked great, thanks a lot for your help.<br><br>On Thu, Jul 22, 2010 at 12:06 AM, Tristan Seligmann <span dir="ltr"><<a href="mailto:mithrandi@mithrandi.net">mithrandi@mithrandi.net</a>></span> wrote:<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Wed, Jul 21, 2010 at 7:37 AM, Sean Dugan <<a href="mailto:smdugan01@gmail.com">smdugan01@gmail.com</a>> wrote:<br>
> When I run this, it returns “Failure: twisted.protocols.ftp.CommandFailed:<br>
> ['550 FtpUpload.txt: Permission denied']”. I can download a file, and view<br>
> the files in a folder, I just can't upload a file. Also if I log-in as one<br>
> the users in the .dat file, instead of anonymous, I can't even view the<br>
> files in a folder. So is there a way to give anonymous or a user in the .dat<br>
> file more permissions, like the write permission?<br>
<br>
</div>The ftpserver.py example uses twisted.protocols.ftp.FTPRealm, which<br>
returns an FTPAnonymousShell instance wrapped around the given path<br>
for anonymous users, and an FTPShell instance wrapped around<br>
/home/username for authenticated users. FTPAnonymousShell does not<br>
allow anything other than read-only access, and /home/yourselecteduser<br>
possibly doesn't even exist on your system. You probably want to write<br>
your own realm implementation that does things a little differently;<br>
you can look at the implementation of FTPRealm to get started, it<br>
isn't very complicated.<br>
<font color="#888888">--<br>
mithrandi, i Ainil en-Balandor, a faer Ambar<br>
</font><div><div></div><div class="h5"><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 style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>