| Server IP : 85.214.239.14 / Your IP : 216.73.216.108 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/cwd/proc/3/cwd/proc/2/root/usr/share/augeas/lenses/dist/tests/ |
Upload File : |
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" = "" } }