Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428234 - sys-libs/glibc: nscd: Missing database and socket directories
Summary: sys-libs/glibc: nscd: Missing database and socket directories
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-26 23:15 UTC by Dustin C. Hatch
Modified: 2012-07-27 17:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin C. Hatch 2012-07-26 23:15:06 UTC
The default installation of sys-libs/glibc does not create the directories in /var necessary for nscd to run. The default configuration in /etc/nscd.conf specifies that passwd, group, and hosts should be cached, however nscd refuses to start with the following errors:

Thu 26 Jul 2012 06:06:24 PM CDT - 23928: cannot create /var/db/nscd/passwd; no sharing possible
Thu 26 Jul 2012 06:06:24 PM CDT - 23928: cannot create /var/db/nscd/group; no sharing possible
Thu 26 Jul 2012 06:06:24 PM CDT - 23928: cannot create /var/db/nscd/hosts; no sharing possible
Thu 26 Jul 2012 06:06:24 PM CDT - 23928: /var/run/nscd/socket: No such file or directory

Creating the directories that are missing (/var/{db,run}/nscd) allows nscd to start without any warnings.

Reproducible: Always

Steps to Reproduce:
1.sudo nscd -d
Actual Results:  
nscd writes errors to stderr indicating that the directories /var/db/nscd and /var/run/nscd are missing. It returns with exit code 1

Expected Results:  
nscd should not write errors and should run successfully
Comment 1 SpanKY gentoo-dev 2012-07-27 17:28:14 UTC
use `/etc/init.d/nscd start`