Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • getent will also list entries from LDAP, etc. Do those count as local? Commented Dec 6, 2014 at 5:17
  • @muru - thanks for the feedback. I'm not sure that's true. I think that's the case only if sssd is running. In addition, by using getent, you need to make sure that /etc/nsswitch.conf is also only restricted to files, if you truly want local files. I'll add this as a note in my A, thanks again. Commented Dec 6, 2014 at 15:13
  • @muru - yeah I used that one as an example, but I'm aware of there being others. Commented Dec 6, 2014 at 15:17
  • 1
    @muru - I also added a pure /etc/passwd only option to show it. I hate to add that since it's generally discouraged to work against those files directly 8-) Commented Dec 6, 2014 at 15:20
  • @muru - I find it a bit annoying that getent does not provide some switch for this. I searched but did not find one. Commented Dec 6, 2014 at 15:21