[Fedora-packaging] Re: Possible UsersAndGroupsDraft

Axel Thimm Axel.Thimm at ATrpms.net
Thu Jun 14 17:38:21 UTC 2007


On Thu, Jun 14, 2007 at 01:17:21PM -0400, Simo Sorce wrote:
> On Thu, 2007-06-14 at 10:44 -0400, Jarod Wilson wrote:
> > Tom "spot" Callaway wrote:
> > > On Thu, 2007-06-14 at 10:14 -0400, Simo Sorce wrote:
> > >> On Thu, 2007-06-14 at 08:44 -0500, Tom "spot" Callaway wrote:
> > >>> A possible improvement I could see would be to change the tool to ask
> > >>> pam if the user exists, as opposed to simply looking
> > >> I guess you mean NSS
> > > So... since I know pam but not NSS, is there a way to ask that question
> > > (does a user/group exist) on the commandline with existing NSS tools?
> > # getent passwd | cut -d: -f1 | grep -c <user>
> > # getent group | cut -d: -f1 | grep -c <group>
> getent passwd <user> >/dev/null
> getent group <group> >/dev/null

`id' feeds of nss just like getent. Ville's draft already was nss
safe. ...
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20070614/45a42cc3/attachment.sig>


More information about the Fedora-packaging mailing list