Add shadow support to getent(1)
./getent shadow root root:$6$d7xVVR/Q$vvhB7GR0v..tCPZ.71QX3YowcTSwTUBkHH7HdXAr9rWwNKUrs4iBc15ZXeNfIcP1yEioaeMh5oM0i63hO9pVL.:15504:0:99999:7:::-1
Updated by Milan Jurik over 8 years ago
The point is that from "somewhere else" you will not receive what you are expecting.
I am only afraid that it will be misleading because getent works with databases and shadow is not database and use case is limited to something which grep for root account can do.
Anyway, we are not doing everything "architecturally" great but mainly useful and if you see it useful, please add manpage diff and I can review it for you.
Updated by Igor Pashev over 8 years ago
Updated by Gary Mills over 7 years ago
- % Done changed from 0 to 80
A couple of people wanted to see use cases for the modified version of getent. It's a system administration tool, used like many others. It's a bad idea to place artificial limits on system administration. Of course, if you have nsswitch.conf configured to use only local files for passwd and shadow, getent is not necessary for either one.
It's a different story if you have nsswitch.conf configured for multiple sources of information for these two databases. The behavior then is fully described in the getspman man page.
Updated by Electric Monk about 7 years ago
Author: Gary Mills <email@example.com> 3243 Add shadow support to getent(1) Reviewed by: Igor Kozhukhov <firstname.lastname@example.org> Reviewed by: Albert Lee <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>