<commit_before>.\"
.\" Copyright (c) 2014-2015  <NAME> <<EMAIL>>
.\"
.\" Permission to use, copy, modify, and/or distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd Jan 09, 2016
.Dt UFTPD 8
.Os "uftpd (1.9)"
.Sh NAME
.Nm uftpd
.Nd
No nonsense TFTP/FTP Server
.Sh SYNOPSIS
.Nm uftpd
.Op Fl dinsvV
.Op Fl h Ar PATH
.Op Fl f Ar PORT
.Op Fl t Ar PORT
.Sh DESCRIPTION
.Nm uftpd
is a very simple TFTP and anonymous FTP server.  It listens on standard
Internet ports for each protocol, as defined in the system service
specification, unless other ports are given on the command line.  For
details, see
.Xr services 5 .
.Pp
Without any command line arguments
.Nm
defaults to FTP mode and automatically backgrounds itself.  Usually
.Nm
will then listen to port 21 (FTP), serve files from
.Pa /srv/ftp
and log anything out of the ordinary to syslog.
.Pp
Available options:
.Bl -tag -width Ds
.It Fl d
Enable developer debug messages.  With syslog backend, log messages are
written to the syslog using
.Nm LOG_FTP
.It Fl i
Inetd mode, take client connections from stdin
.It Fl n
Run in foreground, do not detach from controlling terminal
.It Fl s
Use syslog, even if running in foreground, default when running in the
background.
.It Fl h
Serve files from
.Ar PATH .
.Nm uftpd
defaults to the FTP user's $HOME
.It Fl f
Enable FTP service.  Use the optional
.Ar PORT
argument to listen to a custom port
.It Fl t
Enable TFTP service.  Use the optional
.Ar PORT
argument to listen to a custom port
.It Fl v
Show program version
.It Fl V
Verbose logging
.It Fl ?
Show built-in help text
.El
.Pp
.Sh FTP
The file
.Pa /etc/nologin
can be used to disable FTP access.  If the file exists,
.Nm
displays it and exits.  If the file
.Pa /etc/ftpwelcome
exists,<commit_msg>Update man page with missing command line option arguments.<commit_after>.\"
.\" Copyright (c) 2014-2015  <NAME> <<EMAIL>>
.\"
.\" Permission to use, copy, modify, and/or distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd Jan 09, 2016
.Dt UFTPD 8
.Os "uftpd (1.9)"
.Sh NAME
.Nm uftpd
.Nd
No nonsense TFTP/FTP Server
.Sh SYNOPSIS
.Nm uftpd
.Op Fl dinsvV
.Op Fl h Ar PATH
.Op Fl f Ar PORT
.Op Fl t Ar PORT
.Sh DESCRIPTION
.Nm uftpd
is a very simple TFTP and anonymous FTP server.  It listens on standard
Internet ports for each protocol, as defined in the system service
specification, unless other ports are given on the command line.  For
details, see
.Xr services 5 .
.Pp
Without any command line arguments
.Nm
defaults to FTP mode and automatically backgrounds itself.  Usually
.Nm
will then listen to port 21 (FTP), serve files from
.Pa /srv/ftp
and log anything out of the ordinary to syslog.
.Pp
Available options:
.Bl -tag -width Ds
.It Fl d
Enable developer debug messages.  With syslog backend, log messages are
written to the syslog using
.Nm LOG_FTP
.It Fl i
Inetd mode, take client connections from stdin
.It Fl n
Run in foreground, do not detach from controlling terminal
.It Fl s
Use syslog, even if running in foreground, default when running in the
background.
.It Fl h Ar PATH
Serve files from
.Ar PATH .
.Nm uftpd
defaults to the FTP user's $HOME
.It Fl f Ar PORT
Enable FTP service.  Use the optional
.Ar PORT
argument to listen to a custom port
.It Fl t Ar PORT
Enable TFTP service.  Use the optional
.Ar PORT
argument to listen to a custom port
.It Fl v
Show program version
.It Fl V
Verbose logging
.It Fl ?
Show built-in help text
.El
.Pp
.Sh FTP
The file
.Pa /etc/nologin
can be used to disable FTP access.  If the file exists,
.Nm
displays it and exits.  If the file
.Pa /etc/ftpwelcome
exists,
{'fraction_non_alphanumeric': 0.06629720853858785, 'fraction_numerical': 0.008210180623973728, 'mean_word_length': 3.537243947858473, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4448936', 'n_tokens_mistral': 1588, 'n_tokens_neox': 1446, 'n_words': 821}