NAME
ftp_this - Export the current directory over anonymous FTP
VERSION
This document describes version 0.003 of ftp_this (from Perl distribution App-FTPThis), released on 2017-11-10.
SYNOPSIS
## Export the current directory over anonymous FTP
$ ftp_this
## Export the `dir_name` directory over FTP, specify port
$ ftp_this dir_name --port 8121
## Show documentation about our options
$ ftp_this --help
## Show the entire man page
$ ftp_this --man
DESCRIPTION
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 switches to the directory owner user (or nobody
if directory owner is root, to avoid running the FTP daemon as root).
ARGUMENTS
The script accepts a single optional argument: the path of the directory to export.
OPTIONS
The following options are available:
- --port PORT
-
Start the FTP server on a specific
PORT
. Default is 8021. - --help
-
Print information about the script usage and its options.
- --man
-
Print the entire man page for the command.
TODO
Support systems that do not have chroot().
Support running as normal user (without doing chroot()).
Support non-anonymous (read-write mode).
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/App-FTPThis.
SOURCE
Source repository is at https://github.com/perlancar/perl-App-ftpthis.
BUGS
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.
SEE ALSO
Other scripts in the same spirit: http_this (from App::HTTPThis), https_this (from App::HTTPThis), cgi_this (from App::CGIThis).
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
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.