summaryrefslogtreecommitdiffstats
path: root/lib/libpam/modules/pam_echo/pam_echo.8
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-02-06 12:56:39 +0000
committerdes <des@FreeBSD.org>2003-02-06 12:56:39 +0000
commit1859534a54c3fdbe3e7d09774378d2bc094374af (patch)
treef36262a105d15489e6c5e66deb68900850d6fab4 /lib/libpam/modules/pam_echo/pam_echo.8
parent18387ab2eb1018d5d1d9c4eff1c3489ba334be30 (diff)
downloadFreeBSD-src-1859534a54c3fdbe3e7d09774378d2bc094374af.zip
FreeBSD-src-1859534a54c3fdbe3e7d09774378d2bc094374af.tar.gz
Add support for escape sequences in the arguments (e.g. %u for user name)
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'lib/libpam/modules/pam_echo/pam_echo.8')
-rw-r--r--lib/libpam/modules/pam_echo/pam_echo.833
1 files changed, 32 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_echo/pam_echo.8 b/lib/libpam/modules/pam_echo/pam_echo.8
index 062f513..efc7abb 100644
--- a/lib/libpam/modules/pam_echo/pam_echo.8
+++ b/lib/libpam/modules/pam_echo/pam_echo.8
@@ -1,6 +1,6 @@
.\" Copyright (c) 2001 Mark R V Murray
.\" All rights reserved.
-.\" Copyright (c) 2001 Networks Associates Technology, Inc.
+.\" Copyright (c) 2001,2003 Networks Associates Technology, Inc.
.\" All rights reserved.
.\"
.\" Portions of this software were developed for the FreeBSD Project by
@@ -49,6 +49,37 @@
.Sh DESCRIPTION
The echo service module for PAM displays its arguments to the user,
separated by spaces, using the current conversation function.
+.Pp
+If the
+.Cm %
+character occurs anywhere in the arguments to
+.Nm ,
+it is assumed to introduce one of the following escape sequences:
+.Bl -tag -width 4n
+.It Cm %H
+The name of the host on which the client runs
+.Pq Dv PAM_RHOST .
+.\".It Cm %h
+.\"The name of the host on which the server runs.
+.It Cm %s
+The current service name
+.Pq Dv PAM_SERVICE .
+.It Cm %t
+The name of the controlling tty
+.Pq Dv PAM_TTY .
+.It Cm %U
+The applicant's user name
+.Pq Dv PAM_RUSER .
+.It Cm %u
+The target account's user name
+.Pq Dv PAM_USER .
+.El
+.Pp
+Any other two-character sequence beginning with
+.Cm %
+expands to the character following the
+.Cm %
+character.
.Sh SEE ALSO
.Xr pam.conf 5 ,
.Xr pam 8
OpenPOWER on IntegriCloud