summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd/inetd.8
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-06-04 11:43:29 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-06-04 11:43:29 +0000
commit650fe0907f39b13780c222ec3a8a9fc7cf299884 (patch)
treee2f129c0c50f79ecd1aeab228c579d201b9d8732 /usr.sbin/inetd/inetd.8
parent69da75afd39e60a5671d98dc70bda3bcbc30b73b (diff)
downloadFreeBSD-src-650fe0907f39b13780c222ec3a8a9fc7cf299884.zip
FreeBSD-src-650fe0907f39b13780c222ec3a8a9fc7cf299884.tar.gz
This patch cleans up the ident stuff in inetd. The code which has
been patched so many times it was a bit of a mess. There are style, code and man page cleanups. The following are the functional changes: The RFC only permits the returning of 4 possible error codes, make sure we only return these (PR 27636). Use MAXLOGNAME to determine the longest usernames. Add a -i flag, which returns the uid instead of the username (this is from a PR 25787, which also contained alot of the cleanups in this patch). PR: 25787, 27636 Partially Submitted by: Arne.Dag.Fidjestol@idi.ntnu.no Reviewed by: Arne.Dag.Fidjestol@idi.ntnu.no, green MFC after: 3 weeks
Diffstat (limited to 'usr.sbin/inetd/inetd.8')
-rw-r--r--usr.sbin/inetd/inetd.837
1 files changed, 25 insertions, 12 deletions
diff --git a/usr.sbin/inetd/inetd.8 b/usr.sbin/inetd/inetd.8
index 3cd6e5a..fda2267 100644
--- a/usr.sbin/inetd/inetd.8
+++ b/usr.sbin/inetd/inetd.8
@@ -455,6 +455,21 @@ If the real
service is disabled,
return this username for every request.
This is primarily useful when running this service on a NAT machine.
+.It Fl g
+Instead of returning
+the user's name to the ident requester,
+report a
+username made up of random alphanumeric characters,
+e.g.
+.Dq c0c993 .
+The
+.Fl g
+flag overrides not only the user names,
+but also any fallback name,
+.Pa .fakeid
+or
+.Pa .noident
+files.
.It Fl t Xo
.Ar sec Ns Op . Ns Ar usec
.Xc
@@ -465,6 +480,8 @@ Offer a real
.Dq auth
service, as per RFC 1413.
All the remaining flags apply only in this case.
+.It Fl i
+Return numeric user IDs instead of usernames.
.It Fl f
If the file
.Pa .fakeid
@@ -474,29 +491,25 @@ If the the username found in
.Pa .fakeid
is that of an existing user,
then the real username is reported.
+If the
+.Fl i
+flag is also given then the username in
+.Pa .fakeid
+is checked against existing user IDs instead.
.It Fl F
same as
.Fl f
but without the restriction that the username in
.Pa .fakeid
must not match an existing user.
-.It Fl g
-Instead of returning the user's name to the ident requester, report a
-username made up of random alphanumeric characters, e.g.
-.Dq c0c993 .
-The
-.Fl g
-flag overrides not only the user names, but also any
-.Pa .fakeid
-or
-.Pa .noident
-files.
.It Fl n
If the file
.Pa .noident
exists in the home directory of the identified user, return
.Dq ERROR\ : HIDDEN-USER .
-instead.
+This overrides any
+.Pa fakeid
+file which might exist.
.It Fl o Ar osname
Use
.Ar osname
OpenPOWER on IntegriCloud