GNU Rush |
|
Restricted User Shell |
Sergey Poznyakoff |
Membership operators check if their argument is a member of some set of values. There are two such operators.
lhs in ( args )
The in
operator evaluates to ‘true’ if lhs is
listed in args, which is a whitespace-separated list of strings.
For example:
match $0 in ("scp" "rsync")
The group
operator evaluates to ‘true’ if the requesting
user is a member of at least one group listed in its right-hand side.
It can have two forms:
group grp
Evaluate to ‘true’ if the user is a member of the group grp. The group can be given either by its name or GID.
group ( list )
Evaluate to ‘true’ if the user is a member of one of the groups in whitespace delimited list. Members of list are group names or GIDs.
This document was generated on January 2, 2022 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.