This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: getent not working on nss db passwd files:
- From: Tjernlund <tjernlund at tjernlund dot se>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-help at sourceware dot org
- Date: Wed, 26 Aug 2015 01:58:04 +0200
- Subject: Re: getent not working on nss db passwd files:
- Authentication-results: sourceware.org; auth=none
- References: <1440528236 dot 3436 dot 8 dot camel at tjernlund dot se> <20150825231802 dot GE12316 at vapier>
On Tue, 2015-08-25 at 19:18 -0400, Mike Frysinger wrote:
> On 25 Aug 2015 20:43, Tjernlund wrote:
> > # > echo "clue:x:1005:987:added by portage for
> > clue:/var/tmp:/sbin/nologin" | makedb -o passwd.db -
> > ...
> > I am doing something wrong or is it an bug?
>
> you're using makedb incorrectly. look at /var/db/Makefile to see how
> to
> process the passwd entries in a way that the makedb tool expects.
>
> makedb itself could probably be better wrt error
> reporting/documentation ...
I am looking into creating local tacacs/radius accounts automatically
when a user logs in. One obstacle using shadow(useradd) is that one
cannot use @ in user names. Why is that and is there a way around that?
Jocke