This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Tue, May 27, 2014 at 10:27:09PM +0200, OndÅej BÃlka wrote: > > make check doesn't test nscd. You'll need to test this manually by > > adding various types of netgroups entries in /etc/netgroup. > > > How, I get back to this and now study manpages which is bit confusing. I > tried to install nis for that but ypcat does not seem to work, do you > have a test script? You don't need NIS to test it because you can add netgroup entries in a file called /etc/netgroup. I don't have a script handy to create these, but the netgroup manpage[1] should help you with the netgroup file format to come up with one. The file format is quite simple actually. Each netgroup entry is of type: netgroup_name (host1, user1, domain1) (host2, user2, domain2) ... where the stuff in brackets is called a triplet, which specifies a combination of hostname, username and domain name that may be allowed in a netgroup. A netgroup entry can be split into multiple line with a trailing backslash (\). One may have wildcards in a triplet like so: (host1, , domain1) This means any user on host1 and domain1. You can have similar wildcards for hosts and domains as well, which makes all of the following as valid triplets: (, user, domain) (, , domain) (host, , domain) (host, , ) (host, user, ) and so on. I hope this helps. Siddhesh [1] http://linux.die.net/man/5/netgroup
Attachment:
pgplri6bpzUGV.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |