File: README

package info (click to toggle)
nss-updatedb 10-2
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 696 kB
  • ctags: 66
  • sloc: sh: 5,802; ansic: 732; makefile: 54
file content (44 lines) | stat: -rw-r--r-- 1,164 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

                        nss_updatedb
                        ============

nss_updatedb is a simple tool for dumping users and groups
from a nameservice into a local database. Along with the
pam_ccreds module, also available from PADL, this allows
for disconnected use of nameservice information.

To configure, one would typically put something like the
following in /etc/nsswitch.conf:

passwd:	files ldap [NOTFOUND=return] db
group:	files ldap [NOTFOUND=return] db

and then configure nss_updatedb to be run from a cron job.

The usage is:

# nss_updatedb [nameservice] [passwd|group]

If [passwd|group] is not specified, then both the passwd
and group maps will be updated.

Examples:

Update /var/lib/misc/passwd.db from LDAP:

# nss_updatedb ldap passwd

Update /var/lib/misc/passwd.db & /var/lib/misc/group.db from LDAP:

# nss_updatedb ldap

Update /var/lib/misc/group.db from NIS+:

# nss_updatedb nisplus group

The databases written out are /var/lib/misc/passwd.db and
/var/lib/misc/group.db; these are compatible with the nss_db
module distributed with the GNU C Library.

The nss_updatedb utility is distributed under the GNU General
Public License.