mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4:selftest: avoid creating two entries for UID 0 in provision
Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
fd783b04bb
commit
26fc3eba76
@ -700,10 +700,11 @@ sub provision_raw_step1($$)
|
||||
Samba::mk_krb5_conf($ctx, "");
|
||||
|
||||
open(PWD, ">$ctx->{nsswrap_passwd}");
|
||||
print PWD "
|
||||
root:x:0:0:root gecos:$ctx->{prefix_abs}:/bin/false
|
||||
$ctx->{unix_name}:x:$ctx->{unix_uid}:100:$ctx->{unix_name} gecos:$ctx->{prefix_abs}:/bin/false
|
||||
nobody:x:65534:65533:nobody gecos:$ctx->{prefix_abs}:/bin/false
|
||||
if ($ctx->{unix_uid} != 0) {
|
||||
print PWD "root:x:0:0:root gecos:$ctx->{prefix_abs}:/bin/false\n";
|
||||
}
|
||||
print PWD "$ctx->{unix_name}:x:$ctx->{unix_uid}:100:$ctx->{unix_name} gecos:$ctx->{prefix_abs}:/bin/false\n";
|
||||
print PWD "nobody:x:65534:65533:nobody gecos:$ctx->{prefix_abs}:/bin/false
|
||||
pdbtest:x:65533:65533:pdbtest gecos:$ctx->{prefix_abs}:/bin/false
|
||||
pdbtest2:x:65532:65533:pdbtest gecos:$ctx->{prefix_abs}:/bin/false
|
||||
pdbtest3:x:65531:65533:pdbtest gecos:$ctx->{prefix_abs}:/bin/false
|
||||
|
Loading…
Reference in New Issue
Block a user