RH7, Active Directory, Autofs, NFSv3, Windows 2008R2

Posted on

I have a RedHat 7 Enterprise machine that runs a statistical app. It needs to mount data directories residing on a Windows 2008R2 fileserver. The 2008R2 machine has services for Unix, is in the single, common domain and NFS-shares the users' home directories.

The RH7 machine authenticates users with Active Directory on a separate 2008R2 machine. There are no local users (other than the standard ones) on the RH7 stat server. All users can log in successfully. However, their home directories always have anonymous permissions. The only way I can get the home directories to have the proper permissions is to go to the 2008R2 fileserver, select the home directory and edit the NFS properties. In those properties, I can turn on anonymous access and change the anonymous UID/GID to match that of the owner of the home directory. After doing this, the UID/GID of the mounted nfs share on the RH7 stat server will show the proper ownership for the user. I can then go back into the 2008R2 fileserver and turn OFF anonymous NFS access and the share will continue to mount not as anonymous but as the correct UID/GID.

This seems like a really screwy way to handle this and I haven't fully tested whether other users are really prohibited access to the share. I think they should be, and that's how I'll be spending my morning.

Here's a little more info. If I mount a nfs-shared home directory from a Solaris 10 fileserver, everything is just fine. Specifically:
auto.home for windows share
chilinsk windows_share:/chilinsk
mounts the home directory as
drwx 42xxxxxxxxx 42xxxxxxxxxx ..... chilinsk
(note: 42xxxxxxx is the conversion of -2, which is the default uid/gid for anonymous on windows. I don't remember the full number)

auto.home for solaris 10
chilinsk solaris_share:/home/chilinsk
mounts the home directory as
drwx chilinsk stats .... chilinsk

Can anyone share some enlightenment here.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.