FreeBSD File System, please help

Kirk Strauser kirk at
Tue Jan 9 14:36:12 UTC 2007

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:


     getent database [key ...]

     The getent program retrieves and displays entries from the 
     database specified by database, using the lookup order specified in
     nsswitch.conf(5).  The display format for a given database is as per 
     ``traditional'' file format for that database.



$ 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list