This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Configuring path for passwd file in glibc
- To: "'glibc-linux at ricardo dot ecn dot wfu dot edu'" <glibc-linux at ricardo dot ecn dot wfu dot edu>
- Subject: Configuring path for passwd file in glibc
- From: Cindy Peters <cinpet at adaptivemicro dot com>
- Date: Tue, 16 Oct 2001 09:49:27 -0500
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
I have downloaded and built glibc 2.2.3 in a cross-compile environment for
the powerpc MPC823 with Linux kernel 2.4.6. I built glibc on an x86 host PC
for a powerpc target. I am attempting to install and use samba to login to
the powerpc device from a Windows PC. I am not able to login to the powerpc
device because samba is not able to find my username. I have determined
through some debug print statements in the Linux kernel that samba is
loading the libnss-files library to determine where to look for the passwd
file. I believe that I have the correct entry in the nsswitch.conf file. It
is as follows:
passwd: files nisplus nis
shadow: files nisplus nis
group: files nisplus nis
I haven't been able to figure out how NSS knows how to map files to the /etc
directory but from everything I have read that should be the directory that
it is searching. The passwd file is in the /etc directory. Samba uses the
library routine getpwnam() to determine if the username is valid. I have
written a small test program an used the fgetpwent() and passed in a file
pointer to the /etc/passwd file and that works correctly.
Is there a configuration setting or something that needs modified to tell
libnss_files where to look for the passwd file? How do I determine where
libnss_files is currently looking?
Thanks for your help.
Cindy Peters
Adaptive Micro-Ware, Inc.