[augeas-devel] [Augeas] #339: passwd lens fails for NIS entries

Augeas trac at fedorahosted.org
Fri Apr 12 21:10:35 UTC 2013


#339: passwd lens fails for NIS entries
----------------------+---------------------
 Reporter:  jdmulloy  |       Owner:  lutter
     Type:  defect    |      Status:  new
 Priority:  major     |   Milestone:  next
Component:  Augeas    |     Version:  0.10.0
 Keywords:            |  Blocked By:
 Blocking:            |
----------------------+---------------------
 The passwd lens fails if you have anything nis entries in /etc/passwd that
 are more than just "+::::::". This makes it unusable if you need to only
 add particular users or netgroups from NIS. The following are examples of
 valid NIS entries that need to be properly handled.


 {{{
 + at users::::::/bin/bash
 + at admins::::::
 +alice::::::/bin/tcsh
 +bob:::::/home/bob:/bin/bash
 }}}



 {{{
 $ augtool print /augeas//error
 /augeas/files/etc/passwd/error = "parse_failed"
 /augeas/files/etc/passwd/error/pos = "2239"
 /augeas/files/etc/passwd/error/line = "47"
 /augeas/files/etc/passwd/error/char = "0"
 /augeas/files/etc/passwd/error/lens =
 "/usr/share/augeas/lenses/dist/passwd.aug:74.17-.60:"
 /augeas/files/etc/passwd/error/message = "Iterated lens matched less than
 it should"
 }}}

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/339>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list