diff options
author | Mark Johnston <markj@FreeBSD.org> | 2016-06-04 21:34:06 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2016-06-04 21:34:06 +0000 |
commit | 0f1c6d28f526f95759f940302c381221acb2238a (patch) | |
tree | d2140a2c8a3fc524d180d66e30cfd5e2f53b1375 /usr.bin | |
parent | 7d6906b8043ed814843a4ee2a5bfd46c4775b8ad (diff) | |
download | src-0f1c6d28f526f95759f940302c381221acb2238a.tar.gz src-0f1c6d28f526f95759f940302c381221acb2238a.zip |
Document getent(1)'s ability to enumerate netgroup members.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=301413
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/getent/getent.1 | 4 | ||||
-rw-r--r-- | usr.bin/getent/getent.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/getent/getent.1 b/usr.bin/getent/getent.1 index a14bdfaabd67..a77a18084e9b 100644 --- a/usr.bin/getent/getent.1 +++ b/usr.bin/getent/getent.1 @@ -29,7 +29,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 24, 2005 +.Dd June 4, 2016 .Dt GETENT 1 .Os .Sh NAME @@ -62,6 +62,7 @@ argument may be one of: .It Li ethers Ta address name .It Li group Ta group:passwd:gid:[member[,member]...] .It Li hosts Ta address name [alias ...] +.It Li netgroup Ta (host,user,domain) [...] .It Li networks Ta name network [alias ...] .It Li passwd Ta user:passwd:uid:gid:gecos:home_dir:shell .It Li protocols Ta name protocol [alias ...] @@ -107,6 +108,7 @@ or 3 if there is no support for enumeration on .Xr ethers 5 , .Xr group 5 , .Xr hosts 5 , +.Xr netgroup 5 , .Xr networks 5 , .Xr nsswitch.conf 5 , .Xr passwd 5 , diff --git a/usr.bin/getent/getent.c b/usr.bin/getent/getent.c index 89c58a280c16..977f1471fff2 100644 --- a/usr.bin/getent/getent.c +++ b/usr.bin/getent/getent.c @@ -84,13 +84,13 @@ static struct getentdb { { "ethers", ethers, }, { "group", group, }, { "hosts", hosts, }, + { "netgroup", netgroup, }, { "networks", networks, }, { "passwd", passwd, }, { "protocols", protocols, }, { "rpc", rpc, }, { "services", services, }, { "shells", shells, }, - { "netgroup", netgroup, }, { "utmpx", utmpx, }, { NULL, NULL, }, |