Re: Possible UsersAndGroupsDraft

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

 



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

Attachment: pgpPByXqCAotR.pgp
Description: PGP signature

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux