I've tried making an ftp using Termux and using the Termux App-Private folder as ftp home directory but it's not working as I expected. Does anyone knows?
My crystal ball is foggy today so what did you run and which error are you getting?
You are so funny!
ok here's the thing:
$ tcpsvd -vE 0.0.0.0 1024 ftpd TestLab
tcpsvd: listening on 0.0.0.0:1024, starting
: start 20286 127.0.0.1:1024-127.0.0.1:41904
tcpsvd: status 1/30
tcpsvd: start 20286 127.0.0.1:1024-127.0.0.1:35735
tcpsvd: status 2/30
tcpsvd -vE 0.0.0.0 1024 ftpd TestLab
should have made the ftp server where Termux App-Private folder will be the ftp's home directory right ?
But it is not working as expected. The ftp is starting with the root(/) as home directory. when I tried opening /data/ the entire folder is empty (It should have because there's no root access).
Please help!!!
@Grimler91 Hey, use your crystal ball and help me bro...!
@AJ-Creations For me everything worked.
In Termux I did:

On PC:

Did you expect a behaviour like this ? Or you need a chroot into home directory ?
I think that with busybox's ftpd this is not possible.
@xeffyr
Please tell me how you turned on these buttons?

Tried your same commands

But the ftp home directory is still root(/)

@AJ-Creations set the home path in your ftp client to the path to your TestLab folder. Worked for me when I tested with some android ftp app.
@Deathlive If you want an additional keys, check this PR: https://github.com/termux/termux-app/pull/605
@Grimler91
It works perfectly. Thanks.
Hey please I still can't make my FTP server work correctly. I've searched online and followed the Instructions on the official site but it still doesn't work . I don't know what to do

Error =>
tcpsvd -vE 0.0.0.0 1024 ftpd haboard
tcpsvd: listening on 0.0.0.0:1024, starting
tcpsvd: start 29375 127.0.0.1:1024-127.0.0.1:37137
tcpsvd: can't execute 'ftpd': No such file or directory
tcpsvd: status 1/30
tcpsvd: end 29375 exit 127
tcpsvd: status 0/30
Instructions on the official site
Instructions are now different:
pkg install busybox termux-services
source $PREFIX/etc/profile.d/start-services.sh
sv-enable ftpd
sv up ftpd
If you still need tcpsvd use, then do:
busybox tcpsvd -vE 0.0.0.0 1024 busybox ftpd -w /
However, it's to use SFTP...
Hi everyone,
I have run ftp through busybox tcpsvd -vE 0.0.0.0 1024 busybox ftpd -w /storage/emulated/0/ command, but I can't see anything. Since my android is 10 and not rooted, so I can access $HOME termux directory but cannot access my files in /storage. What should I do to access that. I want this ftp service for sharing my files from phone to another device. Just like an FTP server for cPanel. You could access everything there.
In this service I'm only able to download SOME files.
What would you suggest for this problem ?
@xeffyr
If can't read /storage/emulated/0/, then enable storage access permission.
If can't read
/storage/emulated/0/, then enable storage access permission.
Bro, it works! But I only can access ./0 directory, not emulated. It's good enough but why is this happening that I can't access the emulated directory ?
Thanks a lot for helping me
You can't view the contents under /storage/emulated/ without root. /storage/emulated/0 is a right path to shared storage.
Most helpful comment
My crystal ball is foggy today so what did you run and which error are you getting?