ftp_this - Export the current directory over anonymous FTP
This document describes version 0.001 of ftp_this (from Perl distribution App-FTPThis), released on 2017-11-10.
## Export the current directory over anonymous FTP $ ftp_this ## Export the dir_name directory over FTP, specify port $ https_this dir_name --port 8121 ## Show documentation about our options $ ftp_this --help ## Show the entire man page $ ftp_this --man
SECURITY WARNING: USE THIS SCRIPT FOR TESTING ONLY AND NOT PRODUCTION.
This script exports the current directory over anonymous FTP. It chroots to the directory and switch to the directory owner user (or nobody if directory owner is root, to avoid running the FTP daemon as root).
nobody
The script accepts a single optional argument: the path of the directory to export.
The following options are available:
Start the FTP server on a specific PORT. Default is 8021.
PORT
Print information about the script usage and its options.
Print the entire man page for the command.
Support systems that do not have chroot().
Support running as normal user (without doing chroot()).
Support non-anonymous (read-write mode).
Please visit the project's homepage at https://metacpan.org/release/App-FTPThis.
Source repository is at https://github.com/perlancar/perl-App-ftpthis.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-FTPThis
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Other scripts in the same spirit: http_this (from App::HTTPThis), https_this (from App::HTTPThis), cgi_this (from App::CGIThis).
perlancar <perlancar@cpan.org>
This software is copyright (c) 2017 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::FTPThis, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::FTPThis
CPAN shell
perl -MCPAN -e shell install App::FTPThis
For more information on module installation, please visit the detailed CPAN module installation guide.