On Tuesday 09 January 2007 2:34 am, you wrote: > No idea. There is no manpage for getent on my (6.1) system, so > I don't know what it might do.
Maybe it's new (to FreeBSD) as per 6.2. Anyway: ----------------------- SYNOPSIS getent database [key ...] DESCRIPTION The getent program retrieves and displays entries from the administrative database specified by database, using the lookup order specified in nsswitch.conf(5). The display format for a given database is as per the ``traditional'' file format for that database. ----------------------- Example: $ getent passwd root:*:0:0:System Administrator:/root:/usr/local/bin/zsh rootcsh:*:0:0:Charlie &:/root:/bin/csh daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5:System &:/:/usr/sbin/nologin bin:*:3:7:Binaries Commands and Source:/:/usr/sbin/nologin This has the huge benefit of fully supporting nsswitch, so the same command fetches *all* of your accounts, including those in NIS/YP and LDAP. -- Kirk Strauser
pgpmUi8ThFRJB.pgp
Description: PGP signature