X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=README;h=059fe51d2cd376fc965180dfadec1277dec93dda;hb=59e4e76bd0703e1143a92658dc0bfe54ed3901cd;hp=a6d40b51b51ac234ecbd5477db36a0a3e5028fc8;hpb=b84cf93cb9fc399366212fd1aa4c3b8faf18575c;p=nsscash%2Fnsscash.git diff --git a/README b/README index a6d40b5..059fe51 100644 --- a/README +++ b/README @@ -33,6 +33,15 @@ Nsscash is very careful when deploying the changes: permitted and will not be written to disk. This is designed to prevent the accidental loss of all users/groups on a system. +The passwd/group files have the following size restrictions: +- maximum number of entries: '2^64-1' (uint64_t) +- maximum passwd entry size: 65543 bytes (including newline) +- maximum group entry size: 65535 bytes (including newline, only one member) +- maximum members per group: depends on the user name length, + with 9 bytes per user: 5460 users +- `nsscash` checks for these restrictions and aborts with an error if they are + violated + nsscash is licensed under AGPL version 3 or later. [1] https://github.com/google/nsscache @@ -103,10 +112,10 @@ typical configuration looks like this: url = "https://example.org/group" path = "/etc/group.nsscash" - // Optional, but useful to deploy files which are not supported by the - // nsscash NSS module, but by libc's "files" NSS module. nsscash takes - // care of the atomic replacement and updates; an "netgroup: files" entry - // in "/etc/nsswitch.conf" makes the netgroups available. + # Optional, but useful to deploy files which are not supported by the + # nsscash NSS module, but by libc's "files" NSS module. nsscash takes care + # of the atomic replacement and updates; an "netgroup: files" entry in + # "/etc/nsswitch.conf" makes the netgroups available. [[file]] type = "plain" url = "https://example.org/netgroup"