PAM_ECHO(8) Linux-PAM Manual PAM_ECHO(8)NAME
pam_echo - PAM module for printing text messages
SYNOPSIS
pam_echo.so [file=/path/message]
DESCRIPTION
The pam_echo PAM module is for printing text messages to inform user about special things. Sequences starting with the % character are
interpreted in the following way:
%H
The name of the remote host (PAM_RHOST).
%h
The name of the local host.
%s
The service name (PAM_SERVICE).
%t
The name of the controlling terminal (PAM_TTY).
%U
The remote user name (PAM_RUSER).
%u
The local user name (PAM_USER).
All other sequences beginning with % expands to the characters following the % character.
OPTIONS
file=/path/message
The content of the file /path/message will be printed with the PAM conversion function as PAM_TEXT_INFO.
MODULE TYPES PROVIDED
All module types (auth, account, password and session) are provided.
RETURN VALUES
PAM_BUF_ERR
Memory buffer error.
PAM_SUCCESS
Message was successful printed.
PAM_IGNORE
PAM_SILENT flag was given or message file does not exist, no message printed.
EXAMPLES
For an example of the use of this module, we show how it may be used to print information about good passwords:
password optional pam_echo.so file=/usr/share/doc/good-password.txt
password required pam_unix.so
SEE ALSO pam.conf(8), pam.d(5), pam(7)AUTHOR
Thorsten Kukuk <kukuk@thkukuk.de>
Linux-PAM Manual 06/04/2011 PAM_ECHO(8)
Check Out this Related Man Page
PAM_EXEC(8) Linux-PAM Manual PAM_EXEC(8)NAME
pam_exec - PAM module which calls an external command
SYNOPSIS
pam_exec.so [debug] [expose_authtok] [seteuid] [quiet] [log=file] command [...]
DESCRIPTION
pam_exec is a PAM module that can be used to run an external command.
The child's environment is set to the current PAM environment list, as returned by pam_getenvlist(3) In addition, the following PAM items
are exported as environment variables: PAM_RHOST, PAM_RUSER, PAM_SERVICE, PAM_TTY, PAM_USER and PAM_TYPE, which contains one of the module
types: account, auth, password, open_session and close_session.
OPTIONS
debug
Print debug information.
expose_authtok
During authentication the calling command can read the password from stdin(3).
log=file
The output of the command is appended to file
quiet
Per default pam_exec.so will echo the exit status of the external command if it fails. Specifying this option will suppress the
message.
seteuid
Per default pam_exec.so will execute the external command with the real user ID of the calling process. Specifying this option means
the command is run with the effective user ID.
MODULE TYPES PROVIDED
All module types (auth, account, password and session) are provided.
RETURN VALUES
PAM_SUCCESS
The external command was run successfully.
PAM_SERVICE_ERR
No argument or a wrong number of arguments were given.
PAM_SYSTEM_ERR
A system error occurred or the command to execute failed.
PAM_IGNORE
pam_setcred was called, which does not execute the command.
EXAMPLES
Add the following line to /etc/pam.d/passwd to rebuild the NIS database after each local password change:
password optional pam_exec.so seteuid /usr/bin/make -C /var/yp
This will execute the command
make -C /var/yp
with effective user ID.
SEE ALSO pam.conf(5), pam.d(5), pam(8)AUTHOR
pam_exec was written by Thorsten Kukuk <kukuk@thkukuk.de>.
Linux-PAM Manual 05/05/2010 PAM_EXEC(8)
I frequently rexec into a remote box to run a job, occaisionally I get the the error message "rexecd: Account Disabled" and in the remote box syslog I see "rexecd: PAM - status 28 PAM error message: account is disabled". After a 1/2 hour or so the problem goes away. Anyone shed any light on... (0 Replies)
Helo I m using PAM module on linux system
I have one strange problem.
I have create user and assigned group using my own function.
I m giving more than 8 character password.
Now when I enter upto 8 character then also it will accept.
In short It validate only first 8 character. can U tell... (4 Replies)
Hi
By using select clause I'm trying to pull out the rows to a variable.
If the variable has 0 row(s) selected then i'm printing some text message
else printing some other text message
if($xyz =~ m/0 row/)
{
print "0 rows ";
}
else
{
print " There are rows";
}
By my problem... (4 Replies)
ssmtp has been running well under Kubuntu 12.04.1 for plain text messages. I would like to send html messages with ssmtp -t < /path/to/the/message.txt, but I cannot seem to get the message.txt file properly formatted. I have tried various charsets,
Content-Transfer-Encoding, rearranging the... (0 Replies)