Unsolved

This post is more than 5 years old

716

May 20th, 2009 05:00

Superuser access to Kerberized NFSv4 exported filesytem

How does one go about setting up the kerberos principals and NFSv4 usermapping on a Kerberized (krb5, krb5i or krb5p) NFSv4 export such that the root user on the NFS client has superuser equivalent acces on the underlying filesystem?

This doesn't seem to be covered in any of the docs on:

- NFS
- CIFS
- Multiprrotocol Support
- Usermapping
- Name Services

Note that in my case we are using Red Hat Enterprise 5/CentOS 5 as NFSv4 Clients and DART 5.6.42.501 as the NFSv4 Server.

Note also that the NFS client in these versions of of Linux use the kerberos principal nfs/hostname@REALM for all access to the NFSv4 mount regardless of the kerberos principals that the root user has in their cache.

The export itself is exported with root=myclientmachine and sec=sys based root access works fine. This seems to be all to do with the NFSv4 mapping and the principals involved.

I'm mainly after an ideal world example of how one should configure this rather than looking at our particular config.

Message was edited by:
Carwyn

1 Message

August 17th, 2009 11:00

Hello,

We are trying to achieve exactly the same thing. Let a root user manage the underlying directories with a kerberos mount.
Is this question ever answered ?

Thank you .... Greetings ... Richard

August 27th, 2009 06:00

Yes, you need the kerberos principal that connects to the Celerra to be root@domain. This is a pain with linux as the NFSv4 utils will use the nfs/host@domain credentials if you are root even if you kinit as root and only have the root principal listed in your keytab. Very new versions of the linux nfs-utils allow you to disable the "always use nfs/host@domain if I'm root" behaviour though and let you use the user's keytab to pass credentials to the NFSv4 server on the Celerra. The downside being that this breaks most NFS access on the box you run this on.

We have an "admin" box now that is only used to manipulate the NFSv4 shares as root. Not something we have to do very often thankfully.

1 Message

August 27th, 2009 07:00

Hello,

Ok, so you have a dedicated admin box ? But how does your exports on the filer looks like ?
Something like this ?

export "/fs_nfs3/export1" sec=krb5 nfsv4only
export "/fs_nfs3/export1" root=

Or is your adminbox access also krb5 ?

Greetings .. Richard
No Events found!

Top