Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Location
    Key-stone state
    Posts
    60

    LDAP Client NFS share


    I have got an ldap client successfully authenticating to my ldap server. However I share /home from an nfs server to keep files in sync across the network.

    However when I or any other user logs into the client and performs an "ls -la" to get the permissions of their /home directory the user and group owner is "nobody" Like shown below.

    [root@ta1 oberlander]# ls -l
    total 36
    drwxr-xr-x 2 nobody nobody 4096 Jul 13 13:25 Desktop
    drwxr-xr-x 3 nobody nobody 4096 Jul 11 14:59 Documents
    drwxr-xr-x 2 nobody nobody 4096 Jul 11 14:39 Downloads
    -rw-r--r-- 1 nobody nobody 2008 Jul 11 14:47 license.dat
    drwxr-xr-x 2 nobody nobody 4096 Jun 23 09:05 Music
    drwxr-xr-x 2 nobody nobody 4096 Jun 23 09:05 Pictures
    drwxr-xr-x 2 nobody nobody 4096 Jun 23 09:05 Public
    drwxr-xr-x 2 nobody nobody 4096 Jun 23 09:05 Templates
    drwxr-xr-x 2 nobody nobody 4096 Jun 23 09:05 Videos


    I'm pretty sure that the server is not reading permission correctly because I can mount the /home directory from my old server (which I migrated the account information from) and the permissions map with no problem.

    For your information:

    Server: Red Hat ES 6
    Client: Fedora 14

    Let me know if anyone has had a similar problem or has a answer to this problem.

    Thanks Grimm

  2. #2
    Just Joined!
    Join Date
    Dec 2010
    Location
    Key-stone state
    Posts
    60
    I have an answer and workaround for anyone who stumbles on this post.

    Version 4 of NFS does not use your gid/uid for permissions instead it looks in the password/group file for valid users. Which do not exist since I am using LDAP for authentication.

    The workaround is to mount your shares using version 3 of nfs, note this will require you to open additional ports in the firewall (udp and tcp).

    Does anyone know a way to user version 4 and force it to use uid/gid instead of its defaults?

Posting Permissions

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