/usr/share/augeas/lenses/dist/tests/test_group.aug is in augeas-lenses 1.10.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | module Test_group =
let conf = "bin:x:2:
audio:x:29:joe
avahi-autoipd:!:113:bill,martha
"
test Group.lns get conf =
{ "bin"
{ "password" = "x" }
{ "gid" = "2" } }
{ "audio"
{ "password" = "x" }
{ "gid" = "29" }
{ "user" = "joe" } }
{ "avahi-autoipd"
{ "password" = "!" }
{ "gid" = "113" }
{ "user" = "bill"}
{ "user" = "martha"} }
(* Password field can be empty *)
test Group.lns get "root::0:root\n" =
{ "root"
{ "password" = "" }
{ "gid" = "0" }
{ "user" = "root" } }
(* Password field can be disabled by ! or * *)
test Group.lns get "testgrp:!:0:testusr\n" =
{ "testgrp"
{ "password" = "!" }
{ "gid" = "0" }
{ "user" = "testusr" } }
test Group.lns get "testgrp:*:0:testusr\n" =
{ "testgrp"
{ "password" = "*" }
{ "gid" = "0" }
{ "user" = "testusr" } }
(* NIS defaults *)
test Group.lns get "+\n" =
{ "@nisdefault" }
test Group.lns get "+:::\n" =
{ "@nisdefault"
{ "password" = "" }
{ "gid" = "" } }
test Group.lns get "+:*::\n" =
{ "@nisdefault"
{ "password" = "*" }
{ "gid" = "" } }
|