GNU Rush |
|
Restricted User Shell |
Sergey Poznyakoff |
The syntax of GNU Rush configuration file was designed so as to implement minimum amount of syntactic mark up. Most statements treat their argument as a single value, even if it contains embedded white space. However, leading and trailing whitespace is always removed. Consider, for example, the following statement2:
match[1] ^/sources/[^ ]+\.git$
Here, the argument is ‘^/sources/[^ ]+\.git$’. Note, that you must not quote it, because quotation marks would be considered part of the argument.
There are, however, statements that take several arguments. In these statements, arguments that contain embedded white space must be quoted. For example, in the statement below3 the second argument is a single space character. It is quoted to prevent it from being treated as a delimiter:
map[0] /etc/passwd.rush " " ${user} 1 7
Notice also, that arguments to these statements are subject to backslash interpretation (see Table 2.1).
The table below lists all statements that take multiple arguments, with cross references to more in-depth explanations in the body of the manual.
See user.
See group.
See transform.
See map.
See Environment.
See Regex.
See include-security.
See match, for information about
match
statement.
See map, for
a description of map
statement.
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.