[augeas-devel] [Augeas] #338: sudoers lens fails to parse config section with user switching

Augeas trac at fedorahosted.org
Mon Apr 15 14:23:14 UTC 2013


#338: sudoers lens fails to parse config section with user switching
----------------------+--------------------
  Reporter:  elfe     |      Owner:  lutter
      Type:  defect   |     Status:  closed
  Priority:  major    |  Milestone:  next
 Component:  Augeas   |    Version:  1.0.0
Resolution:  invalid  |   Keywords:
Blocked By:           |   Blocking:
----------------------+--------------------
Changes (by raphink):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Just tried the following:

 {{{
 test Sudoers.lns get "User_Alias USERLIST = user1,user2
 Runas_Alias RUNUSERS = user3,user4
 USERLIST ALL = (RUNUSERS) NOPASSWD: ALL\n" = ?
 }}}

 which returns:
 {{{

   { "User_Alias"
     { "alias"
       { "name" = "USERLIST" }
       { "user" = "user1" }
       { "user" = "user2" }
     }
   }
   { "Runas_Alias"
     { "alias"
       { "name" = "RUNUSERS" }
       { "runas_user" = "user3" }
       { "runas_user" = "user4" }
     }
   }
   { "spec"
     { "user" = "USERLIST" }
     { "host_group"
       { "host" = "ALL" }
       { "command" = "ALL"
         { "runas_user" = "RUNUSERS" }
         { "tag" = "NOPASSWD" }
       }
     }
   }

 }}}


 so it is working in 1.0.0.

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/338#comment:1>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list