Find the answer to your Linux question:
Results 1 to 4 of 4
I have a server and two client machines, all running Debian. I (user) have the same uid and gid (1000) on all three machines. One client accesses the nfs share ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    May 2004
    Location
    forums.gentoo.org
    Posts
    1,817

    NFS shows different file owners on different machines


    I have a server and two client machines, all running Debian. I (user) have the same uid and gid (1000) on all three machines. One client accesses the nfs share normally, where my files are mine (user and group). The other client, which was set up just recently, shows "nobody" and "nogroup" for all files on the share.

    Server exports to 192.168.128.80/28(rw,sync,no_subtree_check)
    Server is 192.168.128.94
    Clients are 192.168.128.89 and .91

    On both clients, fstab calls for mounting with nfs defaults

    I can't find any differences in configuration between the two clients but I've obviously missed something. I have had several other client machines in the past, with no permissions issues mounting nfs shares. How do I get the second client to show the correct owner/group for the shared files?
    /IMHO
    //got nothin'
    ///this use to look better

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,755
    Obviously you are not using a network user database, so since you are not registered in the /etc/passwd file in the second machine, your uid and gid (1000) show as the default "nobody". Note that if someone else was registered on that system with uid 1000, it would display that user name when you run something like "ls -l".
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru
    Join Date
    May 2004
    Location
    forums.gentoo.org
    Posts
    1,817
    You are right that I'm not using a network database. But I do have the same uid and gid on all three machines.

    The client that works:
    Code:
    sfg@ap400:~$ whoami
    sfg
    sfg@ap400:~$ id
    uid=1000(sfg) gid=1000(sfg) groups=1000(sfg),20(dialout),24(cdrom),25(floppy),29(audio),33(www-data),44(video),46(plugdev),65534(nogroup)
    sfg@ap400:~$ ls -l /home/share/
    total 1600
    drwxr-xr-x  4 sfg    sfg       4096 Feb  7  2013 Wine
    -rw-r--r--  1 sfg    sfg          0 Oct 20  2009 wxLog
    sfg@ap400:~$
    The server:
    Code:
    sfg@optisrvr:~$ whoami
    sfg
    sfg@optisrvr:~$ id
    uid=1000(sfg) gid=1000(sfg) groups=1000(sfg),4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),33(www-data),44(video),46(plugdev),106(netdev),110(powerdev),123(fuse)
    sfg@optisrvr:~$ ls -l /home/share
    total 1600
    drwxr-xr-x  4 sfg    sfg       4096 Feb  7  2013 Wine
    -rw-r--r--  1 sfg    sfg          0 Oct 20  2009 wxLog
    sfg@optisrvr:~$
    The client that doesn't work:
    Code:
    sfg@blackcompaq:~$ whoami
    sfg
    sfg@blackcompaq:~$ id
    uid=1000(sfg) gid=1000(sfg) groups=1000(sfg),24(cdrom),25(floppy),29(audio),30(dip),33(www-data),44(video),46(plugdev),50(staff),105(scanner),110(bluetooth),112(netdev),65534(nogroup)
    sfg@blackcompaq:~$ ls -l /home/share/
    total 1600
    drwxr-xr-x  4 nobody nogroup   4096 Feb  7  2013 Wine
    -rw-r--r--  1 nobody nogroup      0 Oct 20  2009 wxLog
    sfg@blackcompaq:~$
    /IMHO
    //got nothin'
    ///this use to look better

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    May 2004
    Location
    forums.gentoo.org
    Posts
    1,817
    I got it fixed. To find the solution, Google this: "I'm running nfsv4, right?"
    /IMHO
    //got nothin'
    ///this use to look better

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •