From: Todd C. Miller Date: Mon, 5 Feb 1996 23:45:52 +0000 (+0000) Subject: added info on wildcards X-Git-Tag: SUDO_1_5_0~273 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d247e981b9f5e354a52c2566a4e4e9df45f9af0;p=sudo added info on wildcards --- diff --git a/sudoers.pod b/sudoers.pod index 7177284a5..263ee0970 100644 --- a/sudoers.pod +++ b/sudoers.pod @@ -57,6 +57,37 @@ will be used. path ::= a fully qualified pathname. arg[1..n] ::= optional command line arguments. +=head2 wildcards (aka meta characters): + +B allows shell-style I along with command arguments +in the I file. Wildcard matching is done via Rich +$alz's C package. + +=over 8 + +=item C<*> + +Matches any set of one or more characters. + +=item C + +Matches any single character. + +=item C<[...]> + +Matches any character in the specified range. + +=item C<[^...]> + +Matches any character B in the specified range. + +=item C<\x> + +For any character "x", evaluates to "x". This is used to +escape special characters such as: "*", "?", "[", and "}". + +=back + Text after a pound sign (B<#>) is considered a comment. Words that begin with a percent sign (B<%>) are assumed to be UN*X groups (%staff refers to users in the group I). @@ -106,9 +137,10 @@ with a "\" if used in command arguments: ",", ":", "=", "\". PARTTIME ALL=ALL,!SHELLS,!SU +interns +openlabs=ALL,!SHELLS,!SU britt REMOTE=SHUTDOWN:ALL=LPCS + jimbo CSNETS=/bin/su *,!/bin/su root nieusma SERVERS=SHUTDOWN,/etc/reboot:\ HUB=ALL,!SHELLS - jill houdini=/etc/shutdown -r now,MISC + jill houdini=/etc/shutdown -[hr] now,MISC markm HUB=ALL,!MISC,!/etc/shutdown,!/etc/halt davehieb merlin=ALL:SERVERS=/etc/halt:\ kodiakthorn=ALL @@ -168,6 +200,11 @@ The user C may run commands in the C alias on the C machines and commands in the C alias on any machine. +=item jimbo + +The user C may C to any user save root on the +machines on C. + =item nieusma The user C may run commands in the C alias @@ -177,8 +214,9 @@ machines. =item jill -The user C may run C as well as -the commands in the C alias on houdini. +The user C may run C or +C as well as the commands in the +C alias on houdini. =item markm @@ -212,4 +250,4 @@ will not run with a syntactically incorrect I file. =head1 SEE ALSO -sudo(8), visudo(8), su(1). +sudo(8), visudo(8), su(1), wildmat(3).