ls shows only userid and groupid instead of username and group name

Posted on 2004-12-01
Last Modified: 2010-04-21

I'm trying to make a rescue linux filesystem that will be booted via NFS trough a PXE enabled NIC.

I can boot right now, the kernel loads perfectly and remote file system is mounted, however, I have constructed the file system in a command by command basis, I mean, when I get an error, I copy the missing file or library to the new fs.

I now, can run commands like cat,more etc, however the ls command reports userid and group id instead of username and groupname /etc/passwd and /etc/group are there and readable.

What file do you think can be missing in my new filesystem?

Question by:egarciat
    LVL 38

    Expert Comment

    >  ls command reports userid and group id instead of username and groupname /etc/passwd and /etc/group
    Are those UID and GID in your local /etc/passwd or /etc/group since you mention about NFS?
    If not, then you need to add into /etc/passwd on the machine where you run "ls".

    LVL 3

    Author Comment

    Thanks Wesly, of course they are.
    LVL 3

    Author Comment

    I found the solution, I'll post it here in case some one else has the same problem.

    There was a file left.  /etc/nsswitch.conf

    This file defines locations for some files including passwd and group if this file is missing the lib wont be able to find these files.

    LVL 38

    Accepted Solution


       You mean you don't have /etc/nsswitch.conf file before?
       By default, the file should be installed. However, it might be corrupted or be deleted by accident.

       Anyway, glad to hear your problem resolved.


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
    The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now