lists.arthurdejong.org
RSS feed

Re: Can't retrieve specific users/groups

[Date Prev][Date Next] [Thread Prev][Thread Next]

Re: Can't retrieve specific users/groups



On Mon, 2015-02-09 at 17:16 +1100, Matthew Cengia wrote:
> When I use 'getent passwd' and grep for a particular user, or use
> 'getent group' and grep for a particular group, the user/group I expect
> appears, but when I 'getent passwd username' or 'getent group
> groupname', I get no results back.
> 
> Can you please take a stab at what I'm doing wrong?

It could be that nscd is running and has non-existence of the user
cached. Run nscd -i passwd and nscd -i group to clear the caches (or
stop it altogether which is a good idea when debugging).

To get a little more detail on what is happening, you could run nslcd in
debug mode (start it manually with the -d option) and watch the output
when a getent command runs.

Hope this helps,

-- 
-- arthur - arthur@arthurdejong.org - http://arthurdejong.org/ --
-- 
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/