Restricted User Shell
Rush can be configured to send a notification over
INET or UNIX sockets, after completing user
request. It is done using the
Notify URL about completing the user request. This statement implies forked mode (see Accounting and Forked Mode).
Allowed formats for url are:
Connect to remote host hostname using TCP/IP. Hostname is the host name or IP address of the remote machine. Optional port specifies the port number to connect to. It can be either a decimal port number or a service name from /etc/services. If port is absent, ‘tcpmux’ (port 1) is assumed.
Connect to a UNIX socket filename.
rule default post-socket inet://localhost
The GNU Rush notification protocol is based on TCPMUX (RFC 1078).
After establishing connection,
rush sends the rule tag
followed by a CRLF pair. The rule tag acts as a service name. The
remote party replies with a single character indicating positive
(‘+’) or negative (‘-’) acknowledgment, immediately followed
by an optional message of explanation, terminated with a CRLF.
If positive acknowledgment is received,
rush sends a
single line, consisting of the user name and the executed command
line, separated by a single space character. The line is terminated
with a CRLF.
After sending this line,
rush closes the connection.
The post-process notification feature can be used to schedule execution of some actions after certain rules.
See notification example, for an example of how to use this feature.
This document was generated on June 29, 2019 using makeinfo.Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.