]> granicus.if.org Git - sudo/commitdiff
Remove warning about wildcards. Now that we use glob() the bug is fixed.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 Oct 2004 18:57:41 +0000 (18:57 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 Oct 2004 18:57:41 +0000 (18:57 +0000)
sudoers.cat
sudoers.man.in
sudoers.pod

index 9bd88b6b93a2ce05bc6f72ce4e8126b75c6f80c0..c1eaedd79337ff2515bb5a8301bec5bc889353fe 100644 (file)
@@ -61,7 +61,7 @@ D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
 
 
 
-1.6.9                    October  4, 2004                       1
+1.6.9                    October  7, 2004                       1
 
 
 
@@ -127,7 +127,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                       2
+1.6.9                    October  7, 2004                       2
 
 
 
@@ -193,7 +193,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                       3
+1.6.9                    October  7, 2004                       3
 
 
 
@@ -259,7 +259,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                       4
+1.6.9                    October  7, 2004                       4
 
 
 
@@ -325,7 +325,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                       5
+1.6.9                    October  7, 2004                       5
 
 
 
@@ -391,7 +391,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                       6
+1.6.9                    October  7, 2004                       6
 
 
 
@@ -457,7 +457,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                       7
+1.6.9                    October  7, 2004                       7
 
 
 
@@ -523,7 +523,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                       8
+1.6.9                    October  7, 2004                       8
 
 
 
@@ -589,7 +589,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                       9
+1.6.9                    October  7, 2004                       9
 
 
 
@@ -655,7 +655,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                      10
+1.6.9                    October  7, 2004                      10
 
 
 
@@ -721,7 +721,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                      11
+1.6.9                    October  7, 2004                      11
 
 
 
@@ -787,7 +787,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                      12
+1.6.9                    October  7, 2004                      12
 
 
 
@@ -853,7 +853,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                      13
+1.6.9                    October  7, 2004                      13
 
 
 
@@ -919,7 +919,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                      14
+1.6.9                    October  7, 2004                      14
 
 
 
@@ -985,7 +985,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                      15
+1.6.9                    October  7, 2004                      15
 
 
 
@@ -1051,7 +1051,7 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
 
 
-1.6.9                    October  4, 2004                      16
+1.6.9                    October  7, 2004                      16
 
 
 
@@ -1068,30 +1068,6 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
        match _\b/_\bu_\bs_\br_\b/_\bb_\bi_\bn_\b/_\bw_\bh_\bo but not _\b/_\bu_\bs_\br_\b/_\bb_\bi_\bn_\b/_\bX_\b1_\b1_\b/_\bx_\bt_\be_\br_\bm.
 
-       WARNING: a pathname with wildcards will n\bno\bot\bt match a user
-       command that consists of a relative path.  In other words,
-       given the following _\bs_\bu_\bd_\bo_\be_\br_\bs entry:
-
-           billy  workstation = /usr/bin/*
-
-       user billy will be able to run any command in /usr/bin as
-       root, such as _\b/_\bu_\bs_\br_\b/_\bb_\bi_\bn_\b/_\bw.  The following two command will
-       be allowed (the first assumes that _\b/_\bu_\bs_\br_\b/_\bb_\bi_\bn is in the
-       user's path):
-
-           $ sudo w
-           $ sudo /usr/bin/w
-
-       However, this will not:
-
-           $ cd /usr/bin
-           $ sudo ./w
-
-       For this reason you should only g\bgr\bra\ban\bnt\bt access to commands
-       using wildcards and never r\bre\bes\bst\btr\bri\bic\bct\bt access using them.
-       This limitation will be removed in a future version of
-       s\bsu\bud\bdo\bo.
-
        E\bEx\bxc\bce\bep\bpt\bti\bio\bon\bns\bs t\bto\bo w\bwi\bil\bld\bdc\bca\bar\brd\bd r\bru\bul\ble\bes\bs
 
        The following exceptions apply to the above rules:
@@ -1114,18 +1090,6 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
         #include /etc/sudoers.local
 
-
-
-
-1.6.9                    October  4, 2004                      17
-
-
-
-
-
-SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
-
-
        When s\bsu\bud\bdo\bo reaches this line it will suspend processing of
        the current file (_\b/_\be_\bt_\bc_\b/_\bs_\bu_\bd_\bo_\be_\br_\bs) and switch to _\b/_\be_\bt_\bc_\b/_\bs_\bu_\bd_\bo_\b­
        _\be_\br_\bs_\b._\bl_\bo_\bc_\ba_\bl.  Upon reaching the end of _\b/_\be_\bt_\bc_\b/_\bs_\bu_\bd_\bo_\be_\br_\bs_\b._\bl_\bo_\bc_\ba_\bl,
@@ -1150,6 +1114,18 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
        _\ba_\bl_\bi_\ba_\bs called A\bAL\bLL\bL as the built-in alias will be used in
        preference to your own.  Please note that using A\bAL\bLL\bL can be
        dangerous since in a command context, it allows the user
+
+
+
+1.6.9                    October  7, 2004                      17
+
+
+
+
+
+SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
+
+
        to run a\ban\bny\by command on the system.
 
        An exclamation point ('!') can be used as a logical _\bn_\bo_\bt
@@ -1180,18 +1156,6 @@ E\bEX\bXA\bAM\bMP\bPL\bLE\bES\bS
        is important.  In general, you should structure _\bs_\bu_\bd_\bo_\be_\br_\bs
        such that the Host_Alias, User_Alias, and Cmnd_Alias spec­
        ifications come first, followed by any Default_Entry
-
-
-
-1.6.9                    October  4, 2004                      18
-
-
-
-
-
-SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
-
-
        lines, and finally the Runas_Alias and user specifica­
        tions.  The basic rule of thumb is you cannot reference an
        Alias that has not already been defined.
@@ -1208,6 +1172,26 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
         Runas_Alias    OP = root, operator
         Runas_Alias    DB = oracle, sybase
 
+
+
+
+
+
+
+
+
+
+
+
+1.6.9                    October  7, 2004                      18
+
+
+
+
+
+SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
+
+
         # Host alias specification
         Host_Alias     SPARC = bigtime, eclipse, moet, anchor :\
                        SGI = grolsch, dandelion, black :\
@@ -1242,22 +1226,6 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
        the year in each log line since the log entries will be
        kept around for several years.
 
-
-
-
-
-
-
-
-1.6.9                    October  4, 2004                      19
-
-
-
-
-
-SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
-
-
         # Override built-in defaults
         Defaults               syslog=auth
         Defaults>root          !set_logname
@@ -1279,6 +1247,17 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
        Full time sysadmins (m\bmi\bil\bll\ble\ber\brt\bt, m\bmi\bik\bke\bef\bf, and d\bdo\bow\bwd\bdy\by) may run
        any command on any host without authenticating themselves.
 
+
+
+1.6.9                    October  7, 2004                      19
+
+
+
+
+
+SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
+
+
         PARTTIMERS     ALL = ALL
 
        Part time sysadmins (b\bbo\bos\bst\btl\ble\bey\by, j\bjw\bwf\bfo\box\bx, and c\bcr\bra\baw\bwl\bl) may run
@@ -1313,17 +1292,6 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
 
         pete           HPPA = /usr/bin/passwd [A-z]*, !/usr/bin/passwd root
 
-
-
-1.6.9                    October  4, 2004                      20
-
-
-
-
-
-SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
-
-
        The user p\bpe\bet\bte\be is allowed to change anyone's password
        except for root on the _\bH_\bP_\bP_\bA machines.  Note that this
        assumes _\bp_\ba_\bs_\bs_\bw_\bd(1) does not take multiple usernames on the
@@ -1344,6 +1312,18 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
         +secretaries   ALL = PRINTING, /usr/bin/adduser, /usr/bin/rmuser
 
        Users in the s\bse\bec\bcr\bre\bet\bta\bar\bri\bie\bes\bs netgroup need to help manage the
+
+
+
+1.6.9                    October  7, 2004                      20
+
+
+
+
+
+SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
+
+
        printers as well as add and remove users, so they are
        allowed to run those commands on all machines.
 
@@ -1379,17 +1359,6 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
        On his personal workstation, valkyrie, m\bma\bat\btt\bt needs to be
        able to kill hung processes.
 
-
-
-1.6.9                    October  4, 2004                      21
-
-
-
-
-
-SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
-
-
         WEBMASTERS     www = (www) ALL, (root) /usr/bin/su www
 
        On the host www, any user in the _\bW_\bE_\bB_\bM_\bA_\bS_\bT_\bE_\bR_\bS User_Alias
@@ -1409,6 +1378,18 @@ S\bSE\bEC\bCU\bUR\bRI\bIT\bTY\bY N\bNO\bOT\bTE\bES\bS
        It is generally not effective to "subtract" commands from
        ALL using the '!' operator.  A user can trivially circum­
        vent this by copying the desired command to a different
+
+
+
+1.6.9                    October  7, 2004                      21
+
+
+
+
+
+SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
+
+
        name and then executing that.  For example:
 
            bill        ALL = ALL, !SU, !SHELLS
@@ -1444,18 +1425,6 @@ P\bPR\bRE\bEV\bVE\bEN\bNT\bTI\bIN\bNG\bG S\bSH\bHE\bEL\bLL\bL E\bES\bSC\bCA\bAP\bPE\bES\bS
                  the ability to override default library func­
                  tions by pointing an environment variable (usu­
                  ally LD_PRELOAD) to an alternate shared library.
-
-
-
-1.6.9                    October  4, 2004                      22
-
-
-
-
-
-SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
-
-
                  On such systems, s\bsu\bud\bdo\bo's _\bn_\bo_\be_\bx_\be_\bc functionality can
                  be used to prevent a program run by s\bsu\bud\bdo\bo from
                  executing any other programs.  Note, however,
@@ -1475,6 +1444,18 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
                      File containing dummy exec functions:
 
                  then s\bsu\bud\bdo\bo may be able to replace the exec family
+
+
+
+1.6.9                    October  7, 2004                      22
+
+
+
+
+
+SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
+
+
                  of functions in the standard library with its
                  own that simply return an error.  Unfortunately,
                  there is no foolproof way to know whether or not
@@ -1510,18 +1491,6 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
                  can transparently intercept a new command, allow
                  or deny it based on _\bs_\bu_\bd_\bo_\be_\br_\bs, and log the result.
                  This does require that s\bsu\bud\bdo\bo become a daemon that
-
-
-
-1.6.9                    October  4, 2004                      23
-
-
-
-
-
-SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
-
-
                  persists until the command and all its descen­
                  dents have exited.
 
@@ -1542,6 +1511,17 @@ SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
                  and Linux.  See <http://www.systrace.org/> for
                  more information.
 
+
+
+1.6.9                    October  7, 2004                      23
+
+
+
+
+
+SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
+
+
        Note that restricting shell escapes is not a panacea.
        Programs running as root are still capable of many poten­
        tially hazardous operations (such as changing or overwrit­
@@ -1576,18 +1556,6 @@ S\bSU\bUP\bPP\bPO\bOR\bRT\bT
        Limited free support is available via the sudo-users mail­
        ing list, see http://www.sudo.ws/mail­
        man/listinfo/sudo-users to subscribe or search the
-
-
-
-1.6.9                    October  4, 2004                      24
-
-
-
-
-
-SUDOERS(4)             MAINTENANCE COMMANDS            SUDOERS(4)
-
-
        archives.
 
 D\bDI\bIS\bSC\bCL\bLA\bAI\bIM\bME\bER\bR
@@ -1611,40 +1579,6 @@ D\bDI\bIS\bSC\bCL\bLA\bAI\bIM\bME\bER\bR
 
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-1.6.9                    October  4, 2004                      25
+1.6.9                    October  7, 2004                      24
 
 
index a64f28330f38827cab59593c37fd42f1c872d025..d0f7d6373ff068b949d7cd745871c99c64bae1fe 100644 (file)
 .\" ========================================================================
 .\"
 .IX Title "SUDOERS @mansectform@"
-.TH SUDOERS @mansectform@ "October  4, 2004" "1.6.9" "MAINTENANCE COMMANDS"
+.TH SUDOERS @mansectform@ "October  7, 2004" "1.6.9" "MAINTENANCE COMMANDS"
 .SH "NAME"
 sudoers \- list of which users may execute what
 .SH "DESCRIPTION"
@@ -1030,34 +1030,6 @@ wildcards.  This is to make a path like:
 .Ve
 .PP
 match \fI/usr/bin/who\fR but not \fI/usr/bin/X11/xterm\fR.
-.PP
-\&\s-1WARNING:\s0 a pathname with wildcards will \fBnot\fR match a user command
-that consists of a relative path.  In other words, given the
-following \fIsudoers\fR entry:
-.PP
-.Vb 1
-\&    billy  workstation = /usr/bin/*
-.Ve
-.PP
-user billy will be able to run any command in /usr/bin as root, such
-as \fI/usr/bin/w\fR.  The following two command will be allowed (the first
-assumes that \fI/usr/bin\fR is in the user's path):
-.PP
-.Vb 2
-\&    $ sudo w
-\&    $ sudo /usr/bin/w
-.Ve
-.PP
-However, this will not:
-.PP
-.Vb 2
-\&    $ cd /usr/bin
-\&    $ sudo ./w
-.Ve
-.PP
-For this reason you should only \fBgrant\fR access to commands using
-wildcards and never \fBrestrict\fR access using them.  This limitation
-will be removed in a future version of \fBsudo\fR.
 .Sh "Exceptions to wildcard rules"
 .IX Subsection "Exceptions to wildcard rules"
 The following exceptions apply to the above rules:
index 9ba4c25da9b2d7b29c610d33e385415c4c305de2..eebc728495ae35b9bc666e58e730f77de54afd71 100644 (file)
@@ -942,28 +942,6 @@ wildcards.  This is to make a path like:
 
 match F</usr/bin/who> but not F</usr/bin/X11/xterm>.
 
-WARNING: a pathname with wildcards will B<not> match a user command
-that consists of a relative path.  In other words, given the
-following I<sudoers> entry:
-
-    billy  workstation = /usr/bin/*
-
-user billy will be able to run any command in /usr/bin as root, such
-as F</usr/bin/w>.  The following two command will be allowed (the first
-assumes that F</usr/bin> is in the user's path):
-
-    $ sudo w
-    $ sudo /usr/bin/w
-
-However, this will not:
-
-    $ cd /usr/bin
-    $ sudo ./w
-
-For this reason you should only B<grant> access to commands using
-wildcards and never B<restrict> access using them.  This limitation
-will be removed in a future version of B<sudo>.
-
 =head2 Exceptions to wildcard rules
 
 The following exceptions apply to the above rules: