Hi Guys,
usually I use this code on my Debian Bullseye:
# python3 -m pyftpdlib -i 192.168.0.71 -p 21 -d /home/my_user/ftp
It works, it's simply easy and perfect but... a device in my lan needs a
ftp folder without username and password!
I tried to search on internet how to set the code above to be available without username and password but... I didn't understand how to fix it :\
Hi Guys,
usually I use this code on my Debian Bullseye:
# python3 -m pyftpdlib -i 192.168.0.71 -p 21 -d /home/my_user/ftp
It works, it's simply easy and perfect but... a device in my lan needs a
ftp folder without username and password!
I tried to search on internet how to set the code above to be available without username and password but... I didn't understand how to fix it :\
Obviously I could use a workaround like Samba or another machine where I
have a Vsftp server but... I'd like to fix Python! ;)
In general, "anonymous FTP" is done technically with a username and
password. Can you look at how the device tries to connect, and then
make that username (probably "anonymous") and that password (could be anything, traditionally was an email address) valid for fetching?
ChrisA
In general, "anonymous FTP" is done technically with a username and
password. Can you look at how the device tries to connect, and then
make that username (probably "anonymous") and that password (could be
anything, traditionally was an email address) valid for fetching?
Thanks for your reply, I needed a TFTP to upload a no brand firmware in
a Wildix antenna, I solved with a free software of SolarWinds, there's something also for Linux!
I tried the written Python code but it needs to insert a username and password so it's a different service than TFTP but maybe there's also a
code to do it in Python! ;)
The code above already does make the directory available without a
username and password. Do you mean you need the directory to be
*writable* without a username and password? If so try the '-w' option.
I tried the written Python code but it needs to insert a username and >password so it's a different service than TFTP but maybe there's also a
code to do it in Python! ;)
The Python code you showed was implementing an FTP server. That's a completely different protocol from TFTP. There are TFTP
implementations for Pythong. This one works well: https://github.com/msoulier/tftpy
--
Grant
It's a whole different protocol. TFTP is simplified to the point it will fit on embedded devices which don't need security (the assumption
being that one has the embedded device physically present, FTP assumes distributed networks).
https://wiki.python.org/moin/tftp
It's a whole different protocol. TFTP is simplified to the point it
will fit on embedded devices which don't need security (the
assumption being that one has the embedded device physically
present, FTP assumes distributed networks).
On Tue, 6 Dec 2022 20:42:42 +0100, ^Bart <[email protected]> declaimed the following:
I tried the written Python code but it needs to insert a username and
password so it's a different service than TFTP but maybe there's also a
code to do it in Python! ;)
It's a whole different protocol. TFTP is simplified to the point it will fit on embedded devices which don't need security (the assumption
being that one has the embedded device physically present, FTP assumes distributed networks).
https://wiki.python.org/moin/tftp
On 7 Dec 2022, at 16:49, ^Bart <[email protected]> wrote:
It's a whole different protocol. TFTP is simplified to the point it
will fit on embedded devices which don't need security (the assumption
being that one has the embedded device physically present, FTP assumes
distributed networks).
https://wiki.python.org/moin/tftp
I never used TFTP so, like what I wrote in another post, I thought it was just a FTP without username and password...
Thanks to show me the "Python way" to use TFTP! :)
Have a nice day!
^Bart
--
https://mail.python.org/mailman/listinfo/python-list
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 148:48:58 |
| Calls: | 12,091 |
| Calls today: | 4 |
| Files: | 15,000 |
| Messages: | 6,517,560 |