diff options
author | markj <markj@FreeBSD.org> | 2016-06-04 21:34:06 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2016-06-04 21:34:06 +0000 |
commit | a7873f41f0da72f36fff372dbbbd656864a1c3d2 (patch) | |
tree | d2140a2c8a3fc524d180d66e30cfd5e2f53b1375 /usr.bin | |
parent | fb4ba6efe3debfa4c94925cf75edff0b7d47346b (diff) | |
download | FreeBSD-src-a7873f41f0da72f36fff372dbbbd656864a1c3d2.zip FreeBSD-src-a7873f41f0da72f36fff372dbbbd656864a1c3d2.tar.gz |
Document getent(1)'s ability to enumerate netgroup members.
MFC after: 3 days
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 a14bdfa..a77a180 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 89c58a2..977f147 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, }, |