Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2007 08:35:57 -0600
From:      Kirk Strauser <kirk@strauser.com>
To:        freebsd-questions@freebsd.org
Cc:        perryh@pluto.rain.com
Subject:   Re: FreeBSD File System, please help
Message-ID:  <200701090836.03608.kirk@strauser.com>
In-Reply-To: <45a353a8.0BHW%2BIfRuDsamdPK%perryh@pluto.rain.com>
References:  <2cd0a0da0701080629k274d8ac2h97addec1391e4932@mail.gmail.com> <200701081245.11217.kirk@strauser.com> <45a353a8.0BHW%2BIfRuDsamdPK%perryh@pluto.rain.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart4081109.hzG8fejn6H
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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:

=2D----------------------

SYNOPSIS
     getent database [key ...]

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

=2D----------------------

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=
=20
fetches *all* of your accounts, including those in NIS/YP and LDAP.
=2D-=20
Kirk Strauser

--nextPart4081109.hzG8fejn6H
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iD8DBQBFo6hT5sRg+Y0CpvERAgGUAJ4v4VBleZf/jIjB62mh1d51/AJ8hACaAmSy
9HX1fZUq+YrWI0MvVi1sC20=
=TNxa
-----END PGP SIGNATURE-----

--nextPart4081109.hzG8fejn6H--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701090836.03608.kirk>